- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctions_input().py
More file actions
Latest commit
26 lines (18 loc) · 517 Bytes
/
Copy pathFunctions_input().py
File metadata and controls
26 lines (18 loc) · 517 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Python input() Function
# Example
# Ask for the user's name and print it:
print('Enter your name:')
x=input()
print('Hello, '+x)
# Definition and Usage
# The input() function allows user input.
# Syntax
# input(prompt)
# Parameter Values
# Parameter Description
# prompt A String, representing a default message before the input.
# More Examples
# Example
# Use the prompt parameter to write a message before the input:
x=input('Enter your name:')
print('Hello, '+x)