12. Write the output of the following:
num1 = 4
num2 = num1 + 1
num1 = 2
print (numi, num2)
Answers
Answered by
1
Answer:
no variable found of name numi
Attachments:
Answered by
0
Answer:
num1 += num2 + num3
print (num1)
b) num1 = num1 ** (num2 + num3)
print (num1)
c) num1 **= num2 + num3
d) num1 = '5' + '5'
print(num1)
e) print(4.00/(2.0+2.0))
f) num1 = 2+9*((3*12)-8)/10
print(num1)
g) num1 = 24 // 4 // 2
print(num1)
h) num1 = float(10)
print (num1)
i) num1 = int('3.14')
print (num1)
j) print('Bye' == 'BYE')
k) print(10 != 9 and 20 >= 20)
l) print(10 + 6 * 2 ** 2 != 9//4 -3 and 29>= 29/9)
m) print(5 % 10 + 10 < 50 and 29 <= 29)
n) print((0 < 6) or (not (10 == 6) and (10<0)))
ANSWER:
a) num1 += 3 + 2
Similar questions
Social Sciences,
2 months ago
Math,
2 months ago
Social Sciences,
4 months ago
Math,
4 months ago
Chemistry,
10 months ago
Biology,
10 months ago