Skip to content

Commit 4b46451

Browse files
committed
Add the code to show how to use input!
1 parent ec0999a commit 4b46451

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
# define a variable is very simple:
99
greeting = 'The fancy greeting!'
1010

11-
print( greeting )
11+
print( greeting )
12+
13+
# collection user's name:
14+
name = input( 'What is your name: ' )
15+
print( 'Nice to meet you, ', name)

0 commit comments

Comments
 (0)