Python to prompt a window to enter inputs we will use raw_input() and input() methods. raw_input() was introduced in Python 2.X version whereas input() method used in Python 3.x versions Prompt window in Python3.x by def main(): main() Prompt window in Python3.x by def main(): main()
print("We have a question!")
name = input('Your name: ')
print('Hello ' + name + ', how are you?')
print("We have a question!")
name = raw_input('Your name: ')
print('Hello ' + name + ', how are you?')
What is PYTHONPATH environment variable?
What is PYTHONHOME environment variable?
What are the supported data types in Python?
What is raw_input() and input() in python
What is Python?
What is PYTHONSTARTUP environment variable?
var = "Python Programming" What is the output of print var?
How to split a string in Python
Python a case sensitive language?
What is the output of print str[3:8] if str = 'Python Programming'?
List the features of Python?