diff --git a/unit2_ex2.3.1.py b/unit2_ex2.3.1.py new file mode 100644 index 0000000..32e5559 --- /dev/null +++ b/unit2_ex2.3.1.py @@ -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' +