Answers for "how to input string in python"

93

python input

#Collecting The Input As A Variable:#
name = input('Please enter your name: ')
#Printing The Variable:#
print(name)
#Checking The Variable And Printing Accordingly:#
if name == 'Joe':
  print('Joe Mama')
Posted by: Guest on August-09-2020
3

taking String input from user in python

User_Name = str(input("What is your name:- "))
print("Hi "+User_Name+" It's me python")
Posted by: Guest on July-27-2021
1

python text input

name = input("Input message here")
Posted by: Guest on February-11-2020

Code answers related to "how to input string in python"

Python Answers by Framework

Browse Popular Code Answers by Language