What will be the output of the following Python code snippet?
Anonymous Quiz
28%
a b c d
22%
0 1 2 3
36%
error
14%
none
پایتون ( Machine Learning | Data Science )
تمرین : خروجی این کد پایتون چیست ؟ #code #test 🆔 @Python4all_pro
توضیحات: در این کد دستور I.upper هیچ مفهومی برای سیستم ندارد برای همین هیچ عملکردی روی آن انجام نمیشه چون I متغیر نیست X متغییره
( متد upper حروف کوچک متن را به بزرگ تبدیل میکند)
( متد upper حروف کوچک متن را به بزرگ تبدیل میکند)
Python_Basics_Cheat_Sheet-updated.pdf
7.1 MB
هر روز یک Cheat Sheet
برگه تقلب شماره ۱۲ پایتون
Cheat Sheet 12: Python
#cheat_sheet #pdf
🆔 @Python4all_pro
برگه تقلب شماره ۱۲ پایتون
Cheat Sheet 12: Python
#cheat_sheet #pdf
🆔 @Python4all_pro
What will be the output of the following Python code snippet?
Anonymous Quiz
10%
abcd
45%
ABCD
37%
error
8%
none
What will be displayed by the code?
Anonymous Quiz
3%
1 1
10%
1 44
25%
3 1
31%
3 44
20%
Error
12%
None of the above
پایتون ( Machine Learning | Data Science )
What will be displayed by the code?
The value of t=3 is passed in funcion f(value,values) , v [list] is passed as values in the same function. The v is stored in values and values[0]=44 , changes the value at index[‘0’] in the list hence v=[44,2,3].
🆔 @Python4all_pro
🆔 @Python4all_pro
Pattern 4
#code #pattern
🆔 @Python4all_pro
n = 7
for _ in range(n):
for _ in range(n):
print("*", end=" ")
print()
#code #pattern
🆔 @Python4all_pro
Pattern 5
#code #pattern
🆔 @Python4all_pro
n = 7
for i in range(n):
for j in range(i+1):
print("*", end=" ")
print()
#code #pattern
🆔 @Python4all_pro
What will be the output of the following Python code?
Anonymous Quiz
13%
0 1 2
59%
a b c
14%
0 a 1 b 2 c
15%
none
Pattern 6
#code #pattern
🆔 @Python4all_pro
n = 7
for i in range(n, 0, -1):
for j in range(i+1):
print("*", end=" ")
print()
#code #pattern
🆔 @Python4all_pro
What is the output of the code?
Anonymous Quiz
19%
True False
16%
False True
20%
False False
21%
True True
24%
Error
پایتون ( Machine Learning | Data Science )
What is the output of the code?
Explanation:
The objects with same contents share the same object in the python library but this is not true for custom-defined immutable classes.
🆔 @Python4all_pro
The objects with same contents share the same object in the python library but this is not true for custom-defined immutable classes.
🆔 @Python4all_pro