Channel Avatar

SuMyPyLab @UCbg1D_sBvEWoNLcFr4lOMoA@youtube.com

1.6K subscribers - no pronouns :c

SuMyPyLab Welcome to SuMyPyLab, your ultimate destination fo


Welcoem to posts!!

in the future - u will be able to do some more stuff here,,,!! like pat catgirl- i mean um yeah... for now u can only see others's posts :c

SuMyPyLab
Posted 2 months ago

What will be the output of the following Python statement?
(5).__add__(4)

0 - 0

SuMyPyLab
Posted 6 months ago

What will be the output of the following Python print statement?
print(55.55+6//5-2)

4 - 2

SuMyPyLab
Posted 7 months ago

What will be the output of the following Python code snippet?

def add(x, y):
" " " Add the numbers x and y and return it " " "
return x + y

print(add.__doc__)

2 - 0

SuMyPyLab
Posted 7 months ago

What will be the output of the following Python code snippet?

squares = [ ]
for n in range(3):
squares.append(n*n)

print(squares)

3 - 0

SuMyPyLab
Posted 8 months ago

What will be the output of the following Python print statement?
print(list(range(-3, 2, 2)))

2 - 0

SuMyPyLab
Posted 8 months ago

What will be the output of the following Python code snippet?
tup = (5)
print(type(tup))

3 - 0

SuMyPyLab
Posted 8 months ago

What is the output of the following Python print statement?
print(isinstance(5.0, (str, int, dict, list, tuple)))

4 - 0

SuMyPyLab
Posted 8 months ago

What will be the output of the following Python statements?
my_list = [1,2,3,4,5,6,7,8,9]
my_new_list = list(filter(lambda x: (x%2 != 0) , my_list))
print(my_new_list)

2 - 0

SuMyPyLab
Posted 8 months ago

Execute the following Python statements in your Python interpreter and enter a few numbers.
x=list(map (float, input("Enter few numbers separated by space: ").split()))
print(x)
Isn't it interesting? Is x a list or a tuple or a set? You may share your response as a comment.

0 - 2

SuMyPyLab
Posted 8 months ago

The .pyc file is the compiled version of the Python source file (.py). If .pyc file exists for a source file (.py) and if it is newer than the corresponding .py file, the Python interpreter skips recompiling (translating) the .py file again. That is .pyc file speeds things up.

2 - 0