Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions unit1-Ex1.3.1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
''' Complete what the output will be obtained from running each line of code.
If the line of code is incorrect, type "error"'''

# 1:
# print(hello world)
# Enswer: error

# 2:
print(2 * 3)
# Enswer: 6

# 3:
print(("3 * 3")
# Enswer: 3 * 3

# 4:
print(2, 2)
# Enswer: 2 2

# 5:
print("hello", "world")
# Enswer: hello world

# 6:
print("my age is", 7*3)
# Enswer: my age is 21

# 7:
print(15 // 2)
# Enswer: my age is 7

# 8:
print(50 + 2 * 4)
# Enswer: my age is 58