Python Forum
Python Homework (Urgent help needed!!)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Homework (Urgent help needed!!)
#2
See the comments added to the altered code below
number = int(input("Enter a 10"))  # changed Number to number
if number == 10:
    print("You have entered a 10")
elif number < 10:  # changed Number to number and added : to the end
    # Number less than 10
    print("Please enter a 10")
    input()
Reply


Messages In This Thread
RE: Python Homework (Urgent help needed!!) - by Yoriz - Oct-03-2021, 10:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP in python homework makashito 4 4,028 Oct-12-2021, 10:12 AM
Last Post: buran
  CyperSecurity Using Python HomeWork ward1995 1 2,016 Jul-08-2021, 03:55 PM
Last Post: buran
Exclamation urgent , Python homework alm 2 2,379 May-09-2021, 11:19 AM
Last Post: Yoriz
  urgent I got a syntax errors alm 2 5,974 Feb-28-2021, 02:54 PM
Last Post: alm
Heart Urgent homework help needed Medou 4 2,815 Nov-24-2020, 09:28 AM
Last Post: buran
  Homework with python Johnsonmfw 1 1,740 Sep-20-2020, 04:03 AM
Last Post: ndc85430
  [Urgent] build code GodMaster 2 1,868 Mar-23-2020, 12:25 AM
Last Post: jefsummers
  Bifid Genkey (Urgent) Laura123 2 2,118 Mar-09-2020, 08:09 PM
Last Post: micseydel
  Python Homework Help *Urgent GS31 2 2,647 Nov-24-2019, 01:41 PM
Last Post: ichabod801
  Python Homework Question OrcDroid123 1 2,427 Sep-01-2019, 08:44 AM
Last Post: buran

Forum Jump:

User Panel Messages

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