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
19 changes: 19 additions & 0 deletions unit2_ex2.3.1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# In the program about the legend "The Ugly Duckling" we defined the following variables:
fairy_tale = "The Ugly Duckling"
swan_height = 90.7
eggs_num = 4
# What will be the output when you run the following lines of code?

# 1:
int(swan_height)
# Enswer: 90

# 2:
# int(fairy_tale)
# Enswer: error message

# 3:
surprise = bool(eggs_num)
str(surprise)
# Enswer: 'True'