im a begginer so i made it with the tools i know(thanks for the explanation, your code is probably the efficient way): def count(initial: int, final:int) -> int: if initial >= 0: while initial < final: initial = initial + 1 print(initial) else: print("error") count(0,100) print(count)
It was a fun watch and a good explanation
Thanks man
Thanks so much! I plan on posting tons more, stay tuned!
I love programming in python, tools fir sec
PYTHON ftw
im a begginer so i made it with the tools i know(thanks for the explanation, your code is probably the efficient way):
def count(initial: int, final:int) -> int:
if initial >= 0:
while initial < final:
initial = initial + 1
print(initial)
else:
print("error")
count(0,100)
print(count)
This is great, thanks for sharing! I like that you have a way to catch an error. Great work!