Python Forum
I am new to python , i am confused with this syntax , please help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I am new to python , i am confused with this syntax , please help
#2
value = int(input("Please enter an integer value in the range 0...10: "))
if value >= 0 and value <= 10:
    print("In range")
else:
    print("Not in range")
print("Done")
Reply


Messages In This Thread
RE: I am new to python , i am confused with this syntax , please help - by Axel_Erfurt - Aug-02-2018, 08:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  C++ programmer confused about why Python isn't working the way I intend Radical 2 1,513 Sep-15-2023, 04:21 AM
Last Post: Radical
  String int confused janeik 7 2,852 Aug-02-2023, 01:26 AM
Last Post: deanhystad
  I am confused with the key and value thing james1019 3 2,052 Feb-22-2023, 10:43 PM
Last Post: deanhystad
  Confused about python execution jpezz 4 2,907 Oct-09-2022, 06:56 PM
Last Post: Gribouillis
  Pandas confused DPaul 6 4,065 Sep-19-2021, 06:45 AM
Last Post: DPaul
  is and '==' i'm confused hshivaraj 6 3,974 Sep-15-2021, 09:45 AM
Last Post: snippsat
  Confused with 'flags' tester_V 10 7,307 Apr-12-2021, 03:03 AM
Last Post: tester_V
  Simple Tic Tac Toe but I'm confused Izith 1 3,735 Sep-26-2020, 04:42 PM
Last Post: Larz60+
  I am really confused with this error. Runar 3 4,223 Sep-14-2020, 09:27 AM
Last Post: buran
  Confused on how to go about writing this or doing this... pythonforumuser 3 3,400 Feb-10-2020, 09:15 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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