Computer Science

Find out the error(s) in following code fragment:


a = 30
b=a+b
print (a And b)

Python Funda

29 Likes

Answer

There are two errors in this code fragment:

  1. In the statement b=a+b variable b is undefined.
  2. In the statement print (a And b), And should be written as and.

Answered By

14 Likes


Related Questions