EASY LVL Python Challenge - Training Grounds (Entry Level Only!!)

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 6

  • @victorfigueroa9976
    @victorfigueroa9976 6 днів тому +1

    It was a fun watch and a good explanation
    Thanks man

    • @CodeWithTrevor
      @CodeWithTrevor  6 днів тому +1

      Thanks so much! I plan on posting tons more, stay tuned!

  • @mohamedwaellabidi1850
    @mohamedwaellabidi1850 5 днів тому +1

    I love programming in python, tools fir sec

  • @boy-vv3jd
    @boy-vv3jd 5 днів тому +1

    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)

    • @CodeWithTrevor
      @CodeWithTrevor  5 днів тому

      This is great, thanks for sharing! I like that you have a way to catch an error. Great work!