PYTHON WORLD ( PYTHON | JAVA | C | C++ | HTML )
15.8K subscribers
141 photos
9 videos
193 files
314 links
Senior Analyst at Capgemini

Channel link :-
https://t.me/python_world_in
(You can share with friends)

👉 Get materials for MNC's.

👉 Off campus recruitment updates.

👉 Interview Experiences.

👉 And all the placement related information at
Download Telegram
ANY MANY MORE PROJECTS COMING IN PREMIUM GROUP WITHIN WEEKS
What will be the output of the code
Anonymous Quiz
9%
5
24%
6
34%
9
9%
12
19%
Error
5%
None of these
👍6
What will be the output of the code?

5
6
9
12
Error
None of the above

Explanation:
The function my_func takes two arguments, x and y, with a default value of 2 for y. The function returns the value of x raised to the power of y.

In the code snippet, my_func is called with the argument 3, but no value is specified for y, so the default value of 2 is used. Therefore, my_func calculates and returns 3 ** 2, which equals 9.

As a result, the correct answer is 9.
👍9
Many one give wrong answers 🤦🏻
👍2
What is the result of the code snippet?
Anonymous Quiz
17%
2
16%
3
24%
‘2’
18%
‘1’
26%
Keyerror
👍7👏5😁2