1. There won't be an output because there's a “#” in front of print, which turns the statement
into a comment.
2. The output results in a name error since no quotation marks were put in the
parentheses.
3. The output is a syntax error because the parentheses weren’t closed properly.
4. A function is a piece of code used to modify or to organize another piece of code. The
values inside the parentheses are the base and the exponent.
Ex:
5. >> 4*3
>> x=10
>> y="10"
>> z=10.0
>> x+x
>> x*3
>> type(x)
>> str(x)
>> float(x)
>> y+y
>> y*3
>> type(y)
>> int(y)
>> float(y)
>> z+z
>> z*3
>> type(z)
>> int(z)
>> str(z)
12
nothing
nothing
nothing
20
30
int
10
10.0
1010
101010
str
10
10.0
20.0
30.0
int
10
10.0
6. Prediction:
17
Int
257
Str
2.7
Float
Output:
17
<class 'int'>
257
<class 'str'>
2.7
<class 'float'>