Question: how do i fix that portion about extra trailing newline nunber-input(Pick a number ) 1t nunber--42: Write a problem that asks the user for a

 how do i fix that portion about extra trailing newline nunber-input("Pick

how do i fix that portion about extra trailing newline

nunber-input("Pick a number ") 1t nunber--"42": Write a problem that asks the user for a number. If the number is equal to 42 your program should work like this: print"You guessed rightl") Pick a number:42 printo You guessed rightl If th riutriber has any uther value your pr tigi am shculd do nothing. Submissions Output Testing the first example in thequestion. Your submission did not produce the correct output. Your program output: Pick a number: 42 You guessed rightl when it was meant to output: Pick a number: 42 You guessed r ightl Your output has an extra trailing neline character

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!