Computer Science, asked by MissWorkholic, 8 months ago

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 Dhwanipareek
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