What will be the output of the following Python code?
from math import factorial print(math.factorial(5))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
from math import factorialprint(factorial(5))
What will be the output of the following code snippet?
numbers = (4, 7, 19, 2, 89, 45, 72, 22) sorted_numbers = sorted(numbers) odd_numbers = [x for x in sorted_numbers if x% 2!=0] print(odd_numbers)
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?
Choose the correct function declaration of fun1() so that we can execute the following two function calls successfully.
fun1(25, 75, 55) fun1(10, 20)
fun1() का सही फंक्शन डिक्लेरेशन चुनें ताकि हम निम्नलिखित दो फंक्शन कॉल्स को सफलतापूर्वक निष्पादित कर सकें।
Hear we call function with two and 3 arguments , to pass variable length argument we use variable permeameter. hence def fun1(*a) is correct option because in this case we can pass variable length of arguments.
In Python, you can use the *args syntax to represent a variable-length argument list in a function. This allows a function to accept any number of positional arguments.
x='abcd' for i in x: print(i.upper())
What will be the output of following?
Y=[2,5J,6] Y.sort()
निम्नलिखित का आउटपुट क्या होगा?
TypeError: '<' not supported between instances of 'complex' and 'int'
What is the output of the following code?
def s(n1): print(n1) n1=n1+2 n2=4 s(n2) print(n2)
निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following?
x=123 for i in x: print(i)
निम्नलिखित का आउटपुट क्या है?