Home / MCQ Bank / Computer
Computer Functions In Python Difficulty: Medium

What will be the output of the following code: def my_function(a, b): return a / b result = my_function(4, 2) print(result)

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C code? #include <stdio.h> typedef struct student { char *a; }stu; void main() { struct stu s; s.a = "hi"; printf("%s", s.a); } Which type of Programming does Python support? Which of the following is/are the features of R? What will be the output of the following Python code? x = "abcdef" i = "i" while i in x: print(i, end=" ") gets() does the following when it reads from stdin.