Differentiate between displaying and printing method in python.
Answers
Answered by
33
Answer:
print() function is used to print Objects to the console whereas the input() function is used to take user input. For example: If you want to know the user's name and greet them, you can do the following. The above program will prompt the user with the question “What's your name? ” and will ask for the user's input.
Similar questions
Business Studies,
5 months ago
Math,
5 months ago
English,
10 months ago
Social Sciences,
10 months ago
Physics,
1 year ago
Biology,
1 year ago