Computer Science
Carefully observe the code and give the answer.
def function1(a):
a = a + '1'
a = a * 2
>>>function1("hello")
- indentation Error
- cannot perform mathematical operation on strings
- hello2
- hello2hello2
Related Questions
What is a variable defined outside all the functions referred to as ?
- A static variable
- A global variable
- A local variable
- An automatic variable
What is a variable defined inside a function referred to as
- A static variable
- A global variable
- A local variable
- An automatic variable
What is the result of this code ?
def print_double(x): print(2 ** x) print_double(3)
- 8
- 6
- 4
- 10
What is the order of resolving scope of a name in a Python program ?
- B G E L
- L E G B
- G E B L
- L B E G