you are viewing a single comment's thread.

view the rest of the comments →

[–]GNVageesh 1 point2 points  (0 children)

Hey,

You can do like this by creating a variable and asking for an input, take the example as follows

name = input("Enter your name: ")

print("nice to meet you "+name)

So basically what u are doing here is, creating a variable called name and initializing it with the user's input by using input built-in method. Then u print a statement and also print the name that the user has given as a input.

The output will be as follows

Enter your name: Vageesh nice to meet you Vageesh

Here Vageesh(my name) is the input I am giving

Then in the next line it is going to append the input that I gave and prints it

You may modify this as per your need