Python Forum
[split] Very basic coding issue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Very basic coding issue
#1
age = int(input('please enter your age: '))
try:
    if age > 0:
        print("You are", age, "years old!")
    elif age > 90:
        print('you are too old!')
except:
    print('that can\'t be your age')
Reply


Messages In This Thread
[split] Very basic coding issue - by aary - Jun-03-2020, 08:47 AM
RE: [split] Very basic coding issue - by Yoriz - Jun-03-2020, 11:17 AM
RE: [split] Very basic coding issue - by buran - Jun-03-2020, 11:24 AM
RE: [split] Very basic coding issue - by buran - Jun-03-2020, 11:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Basic Coding Question: Exit Program Command? RockBlok 3 675 Nov-19-2023, 06:31 PM
Last Post: deanhystad
  [split] Issue installing selenium Akshat_Vashisht 1 620 Oct-18-2023, 02:08 PM
Last Post: Larz60+
  [split] Is there some coding that will do the following in 3 separate events? bensan 23 6,606 Jul-27-2021, 03:48 PM
Last Post: jefsummers
  Very basic coding issue mstichler 3 2,661 Jun-03-2020, 04:35 AM
Last Post: mstichler
  Basic example Coding gudlur46 2 2,128 Dec-19-2019, 01:55 PM
Last Post: gudlur46
  Python Coding Issue! ankitdixit 3 109,317 Sep-25-2019, 06:31 AM
Last Post: rohanjoshi0894
  Coding issue 1557676 2 38,221 Aug-02-2019, 08:54 PM
Last Post: cvsae
  Basic coding question with Python Than999 3 3,203 Jul-17-2019, 04:36 PM
Last Post: jefsummers
  Basic List Issue rogueakula 1 2,227 May-18-2019, 06:01 PM
Last Post: snippsat
  [split] Is there any issue related to path defined somewhere purnima1 2 2,510 Sep-05-2018, 06:28 AM
Last Post: purnima1

Forum Jump:

User Panel Messages

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