Computer Science, asked by royishita2008, 7 months ago

1
xi. What is the output of the following program:
def myfunc(a):
a = a + 2
a = a* 2
return a
print myfunc(2)
(i) 8
ii) 16
(iii) Indentation Error
(iv) Runtime Error​

Answers

Answered by Anonymous
0

Answer:

Martin is a commander in the army. An undercover agent shares some secret information with him. The secret information: consists of a text and the name of a terrorist With the given information Martin needs to find the number of terrorists who are going to attack the army base. The agent gave Martin a hint that the number of terrorists is the number of times the terrorists name occurs in the text.

Write an algorithm to help Maan find the number of terrorists who are going to attack the army base.

Answered by kavipriyamnm
0

Explanation:

1

xi. What is the output of the following program:

def myfunc(a):

a = a + 2

a = a* 2

return a

print myfunc(2)

(i) 8

ii) 16

(iii) Indentation Error

(iv) Runtime Error

Similar questions