Python Learning
5.93K subscribers
473 photos
1 video
65 files
109 links
Python Coding resources, Cheat Sheets & Quizzes! πŸ§‘β€πŸ’»

Free courses: @bigdataspecialist

@datascience_bds
@github_repositories_bds
@coding_interview_preparation
@tech_news_bds

DMCA: @disclosure_bds

Contact: @mldatascientist
Download Telegram
What will be the output of the following Python code snippet?

for i in [1, 2, 3, 4][::-1]: print (i)
Anonymous Quiz
63%
4 3 2 1
18%
Error
12%
1 2 3 4
7%
None
πŸ‘2
What will be the output of the following Python statement?

>>>"a"+"bc"
Anonymous Quiz
4%
bc
91%
abc
3%
a
3%
bca
Which one of the following is not a keyword in Python language?
Anonymous Quiz
38%
pas
17%
eval
8%
assert
37%
nonlocal
πŸ‘4😁4
Python Learning
Which one of the following is not a keyword in Python language?
First answer should be pass instead of pas* it's a typo
πŸ‘3
What will be the output of the Python code?
Anonymous Quiz
36%
12
34%
224
17%
None
14%
Error
πŸŽ‰3
What will be the output of the following Python program?
Anonymous Quiz
27%
Error
15%
None
34%
False
24%
True
πŸ‘2
Which module in the python standard library parses options received from the command line?
Anonymous Quiz
16%
getarg
27%
getopt
29%
main
29%
os
Python Project Ideas for Beginners
πŸ‘4
What arithmetic operators cannot be used with strings in Python?
Anonymous Quiz
17%
*
39%
-
8%
+
36%
All
😁4πŸ‘3πŸ₯°3
What will be the output of the following Python code?

print("abc. DEF".capitalize())
Anonymous Quiz
13%
Abc. def
5%
abc. def
15%
Abc. Def
67%
ABC. DEF
πŸ‘6
Which of the following statements is used to create an empty set in Python?
Anonymous Quiz
21%
( )
28%
{ }
21%
[ ]
30%
Set( )
πŸ‘7πŸ‘Ž1😁1
To add a new element to a list we use which Python command?
Anonymous Quiz
3%
list1.addEnd(5)
6%
list1.addLast(5)
75%
list1.append(5)
16%
list1.add(5)
What will be the output of the following Python code?

print('*', "abcde".center(6), '*', sep='')
Anonymous Quiz
22%
* abcde *
34%
*abcde *
18%
* abcde*
26%
* abcde *
😁6
What is the maximum possible length of an identifier in Python?
Anonymous Quiz
23%
79 characters
16%
31 characters
25%
63 characters
36%
None
πŸ‘2
Which of the following is a Python tuple?
Anonymous Quiz
24%
{1, 2, 3}
5%
{}
58%
(1, 2, 3)
13%
[1, 2, 3]
πŸ‘4
What will be the output of the following Python code snippet?

z=set('abc$de') 'a' in z
Anonymous Quiz
18%
Error
57%
True
13%
False
12%
No output
πŸ‘4
What will be the output of the following Python expression?

round(4.576)
Anonymous Quiz
23%
4
40%
4.6
31%
5
6%
4.5