Answers for "how to take user input in function in python"

0

python user input

var = raw_input()
# OR
var = input()

""" raw_input can only be a string, but input can be a string, 
integer, or variable. """
Posted by: Guest on February-25-2021
0

how to get input from user in python

name = input("Enter your name: ")
print(f'Hello {name}')
Posted by: Guest on September-07-2021

Code answers related to "how to take user input in function in python"

Python Answers by Framework

Browse Popular Code Answers by Language