COMPUTER SCIENCE
MARKS:50
1. 2
Find the output of the following:
>>>Name = “Python Examination”
>>>print (Name [ : 8 : -1])
2.
Observe the following Python code very carefully and rewrite it after
2
removing all syntactical errors with each correction underlined.
DEF result_even( x =
):
input(“Enter a number”)
if (x % 2 = 0) :
print (“You entered an even
number”) else: print(“Number is
odd”) even ( )
3. 2
4. 2
, 5. 2
6. 2
7. 2