Question: What is the difference between the x = input ( Enter a letter ) and input ( Enter a letter ) ? x
What is the difference between the x inputEnter a letter" and inputEnter a letter"
x inputEnter a letter" will store the input into the variable named x while inputEnter a letter" will collect the input and then throw it away.
x inputEnter a letter" will accept a number while inputEnter a letter" will accept a character.
x inputEnter a letter" will store a number if one is entered while inputEnter a letter" will only store characters.
There is no difference in the two statements; they both will accept whatever the user types in
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
