Skip to content

Commit 872750d

Browse files
Add files via upload
1 parent 2bd5c40 commit 872750d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyhton_study_1/page13/script.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
money = 2
2+
apple_price = 2
3+
4+
if money > apple_price:
5+
print('You can buy an apple')
6+
# When the two variables have the same value, print 'You can buy an apple but your wallet is now empty'
7+
elif money == apple_price:
8+
print("You can buy an apple but your wallet is now empty")
9+
10+
else:
11+
print('You do not have enough money')

0 commit comments

Comments
 (0)