Python User Input

This topic is to discuss the following lesson:


As far as I understand, the code shown in this example seems to be incorrect. There is no need for Print function here for the output we get when we execute the code. Please check. Thanks!

Hello Rahul

Hmm, I’m not sure what you mean. If the print function was not there, no output would appear after you put in the hostname. Results with the print function:

Results without the print function:

Can you clarify the error that you are referring to?