Monday, May 17, 2021

3- Getting information from user

Input data

For a program to be useful it needs to get at least some information from the user. With this, the program can take actions that are relevant to the user, instead of generic actions, like printing "Hello world!".

You might provide additional data by passing strings these parameters to the program, or you could have the program ask you for data interactively.

πŸ‘‡πŸ‘‡πŸ‘‡Click Read more

If you type on the command line like below, 


name = "All Educators Blog page"
print("Hi, "+name+" visitor! ")

Then you see the output like below.

Hi, All Educators Blog page visitor!


Very easy, right?

No comments:

Post a Comment

Your comment will taken into consideration.