Answers for "taking input and output in python"

0

print input in python

# Take input from user and store it as a variable. E.g. I store the input as 'user_inp'
user_inp = input("Enter anything you want: ")

#Now you can print it by using print function
print("You entered ", user_inp)
# If you don't want "You entered " you can simply write as:- print(user_inp)
Posted by: Guest on March-10-2021
0

Getting Input in Python

print("What is your name?")
name = input()
print(name)  # This will print out whatever the user typed
Posted by: Guest on October-17-2021

Code answers related to "taking input and output in python"

Python Answers by Framework

Browse Popular Code Answers by Language