Python Forum
MyProgrammingLab wont accept anything I put in
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyProgrammingLab wont accept anything I put in
#1
Hi! So, I am extremely new to Python and coding. I have this homework assaignment due tonight. I feel like I am sooo close, but for whatever reason MyProgrammingLab wont accept anything I put in. Maybe its my spacing? The assaignment is due tonight. Please help!!
Question:
You have a unique ID number, which is represented by the variable id, containing a string of numbers. Write a program that continuously takes strings to standard input. If the string is not your ID number, print "This is not your ID number." If it is, print "This is your ID number: " followed by the number, and terminate the loop.

My Code:
number = input()
while number != id:
	print("This is not your ID number.")
number = input()
	print("This is your ID number:", id)
Thank you to anyone with advice! Heart Blush Big Grin
Reply


Messages In This Thread
MyProgrammingLab wont accept anything I put in - by chicks4 - Feb-10-2019, 11:10 PM
RE: HELLLP! - by ichabod801 - Feb-10-2019, 11:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Program that allows to accept only 10 integers but loops if an odd number was entered gachicardo 4 3,604 Feb-24-2022, 10:40 AM
Last Post: perfringo
  I will accept any help with this task (compression code) Malin3k 3 2,305 Feb-10-2021, 10:20 AM
Last Post: Larz60+
  Help With MyProgrammingLab Code Problem alex_0 2 3,745 Jan-31-2021, 03:38 AM
Last Post: BashBedlam
  Why wont this work? samh625 6 3,313 Jul-30-2020, 08:30 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

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