Python Program to take input from the user and print it
Code:
var = input()
var
Explanation:
First the input gave by
the user assigned to the variable named var and in the next line by
writing the variable name var we're getting the assigned value in it as
output, that is what given by the user previously. I as a user gave the input XploringCodes
and that I'm getting as output.
Output:
'XploringCodes'
Output
Image:
Comments
Post a Comment