0

Why can't we use input in place of print and print in place of input?

Confused

17th Jun 2018, 7:25 PM
Neeraj Maharana
Neeraj Maharana - avatar
2 Respostas
+ 6
print is for showing (aka like printing out paper, except it's for your computer console). input is for obtaining new info, usually from the user. just due to the way the definition of the words are, it wouldn't make sense to switch them. But if you really wanted to switch the words, I think you could make a function called print that calls input, and a function called input that prints
18th Jun 2018, 12:28 AM
Ahri Fox
Ahri Fox - avatar
+ 5
Because print is a keyword meant only to print, and input is meant to input.
17th Jun 2018, 7:28 PM
Andre Daniel
Andre Daniel - avatar