(10/10)

Beginner Project — Python typing lesson

Combine beginner concepts into a complete Python project.

What you'll practice

Let's combine everything you've learned into a mini-project: a treasure chest!

  • This program uses a list, input(), an if statement, and .append().
  • Notice the `==` for checking if two things are equal.
🐍Python

Beginner Project

0 WPM
0% Accuracy
0:00 Time elapsed
1
2
3
4
5
6
7
8
9
10
treasure_chest = ['gold coin', 'map']↵
print('You have a treasure chest!')↵
choice = input('Type add or see: ')↵
↵
if choice == 'add':↵
new_item = input('What to add? ')↵
treasure_chest.append(new_item)↵
↵
print('Your treasure chest has:')↵
print(treasure_chest)
0 / 261
Press This!
👇
`~
1!
2@
3#
4$
5%
6^
7&
8*
9(
0)
-_
=+
⌫
⇥
Q
W
E
R
T
Y
U
I
O
P
[{
]}
\|
⇪
A
S
D
F
G
H
J
K
L
;:
'"
↵
⇧
Z
X
C
V
B
N
M
,<
.>
/?
⇧
Thumb
Index
Middle
Ring
Pinky