Find the errors in following code segment:
*a) ab.c=2,8.9
print(a,b,c)
c.barab.o
print(a,b,c)
*b) else = 21-5
Answers
Answered by
0
Explanation:
temperature = 90
print temperature # print() is a function and parentheses must be used in python3
ii)
a = 30
b = a + b # b is not defined
print(a And b) # And should be written as and
iii)
a, b, c = 2, 8, 9
print(a, b, c)
c, b, a = a, b, c
print(a;b;c) # ',' should be used instead of ';'
iv)
X = 24
4 = X # Incorrect assignment, Variables are Rvalues
v)
print("X="X) # A ',' should be used between the string and variable
vi)
else = 21-5 # else is a keyword and can't be used a variable
Similar questions
Science,
3 months ago
Math,
3 months ago
English,
3 months ago
Political Science,
8 months ago
Environmental Sciences,
1 year ago
Business Studies,
1 year ago