Python Forum
Program doesnt return beginning
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Program doesnt return beginning
#2
I do not understand the question. Your code provides no way to enter a second input. You run the program. The program waits for you press the enter key. The program converts whatever you typed into an int. If the int is > 19 the program prints "old", otherwise it prints "young". Execution reaches the end of the program, and the program ends.

Do you want to repeat the code? (get input, print...)? To do that you need some kind of loop (for or while).
Reply


Messages In This Thread
Program doesnt return beginning - by bilisim19 - Feb-15-2023, 05:45 PM
RE: Program doesnt return beginning - by deanhystad - Feb-15-2023, 06:21 PM
RE: Program doesnt return beginning - by Larz60+ - Feb-15-2023, 06:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Just beginning dalekeel 2 1,483 Apr-15-2024, 11:49 AM
Last Post: Pedroski55
  List of dataframe values beginning with x,y or z glidecode 3 2,699 Nov-08-2021, 10:16 PM
Last Post: glidecode
  How to start the program from the beginning. iamaghost 5 4,678 Feb-23-2021, 03:40 AM
Last Post: deanhystad
  code doesnt return anything ofrihemo 3 2,899 Jun-30-2020, 05:14 PM
Last Post: ofrihemo
  why doesnt the while loop run? supermane 3 3,947 Aug-04-2018, 06:01 AM
Last Post: wavic
  Beginning of Beginner Help: Should I start with Python? appdevelnewb 2 3,711 Jul-23-2018, 11:17 PM
Last Post: appdevelnewb
  Wrap from end to beginning. 27 to 1, 28 to 2 etc DreamingInsanity 5 4,852 Jun-24-2018, 01:02 PM
Last Post: ljmetzger
  Why does this work and this doesnt= puruvaish24 1 3,185 May-22-2018, 03:58 AM
Last Post: scidam
  How to Loop CSV File Beginning at Specific Row? bmccollum 5 42,972 Nov-05-2017, 11:04 PM
Last Post: bmccollum
  Need help for beginning coding sylas 13 10,320 Mar-28-2017, 06:36 AM
Last Post: sylas

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020