CBSE Class 12 Computer Science
Question 12 of 103
Working with Functions — Question 4
Back to all questions- Colon is missing at the end of function header.
- There is no error.
- The variable
xis not defined. defkeyword at the beginning and colon at the end of function header are missing.
The corrected function definitions are:
def main(): print("hello")
def func2(): print(2 + 3)
def compute(x): print (x * x)
def square(a): return a * a