You can use Python in-built method input() to take input from user as shown in the below example –
1 2 3 4 5 6 7 |
name = input("Enter your name: ") print("Hello",name) ## Returns ## Enter your name: Debjeet ## Hello Debjeet |
You can use Python in-built method input() to take input from user as shown in the below example –
1 2 3 4 5 6 7 |
name = input("Enter your name: ") print("Hello",name) ## Returns ## Enter your name: Debjeet ## Hello Debjeet |