8000 Add missing solution to exercise 3 in Chapter 4.4 · rakash/python-basics-exercises@54fe530 · GitHub
[go: up one dir, main page]

Skip to content

Commit 54fe530

Browse files
committed
Add missing solution to exercise 3 in Chapter 4.4
1 parent d98ce06 commit 54fe530

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ch04-strings-and-string-methods/4-interact-with-user-input.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@
1111
# Exercise 2
1212
# Display the input string converted to lower-case letters
1313
print(my_input.lower())
14+
15+
16+
# Exercise 3
17+
# Take user input and display the number of input characters.
18+
input_string = input("Type something else: ")
19+
print(len(input_string))

0 commit comments

Comments
 (0)
0