KTU BTECH 2024 First Semester-Algorithmic Thinking with Python - Module 3 Part - 2 -Example Programs

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

КОМЕНТАРІ • 8

  • @pesgadget1213
    @pesgadget1213 21 годину тому +1

    Distance =int veche read cheythal 58 ayate kitto? Per kilometre parayumbo nammal decimal ayate edukano distance?

  • @shafnashafna1601
    @shafnashafna1601 25 днів тому +4

    Sir n whole numbers print cheyyunath okke simple ayiii
    n=int(input ("enter the limit:"))
    For x in range (0,n+1,1):
    print(x)
    Ingane cheythudeee🙌🏻

    • @techtalkz4656
      @techtalkz4656  25 днів тому +1

      Good Try! There is a logical error in this program written by Shafna. Can anyone spot the errors ?

    • @shafnashafna1601
      @shafnashafna1601 25 днів тому +2

      ​@@techtalkz4656
      yes sir
      range already started from zero and incremented by one so don't specify that .
      Only range(n+1) .
      isn't this logical error??

    • @techtalkz4656
      @techtalkz4656  25 днів тому +4

      @shafnashafna1601 range(0,n+1,1) and range(n+1). Both are logically correct. It's not the issue. Provide indentation for statements inside the for loop. Leave some space and write print statement. Other than this, program seems to be fine. If you were asked to print first n whole numbers, you can use range(n)

  • @SreelakshmiShaju-qe5qh
    @SreelakshmiShaju-qe5qh 29 днів тому +2

    Thanks ❤

  • @SreelakshmiShaju-qe5qh
    @SreelakshmiShaju-qe5qh 29 днів тому +1

    Thanks ❤

  • @pblm_koya
    @pblm_koya 3 дні тому +1

    Thank you sir❤