Python Learning
5.93K subscribers
474 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
2
Python advantages and disadvantages
8👍1
What will be the output of the following Python function?

min(max(False,-3,-4), 2,7)
Anonymous Quiz
10%
-4
15%
-3
22%
2
53%
False
👍4😁2
Which of the following is not a core data type in Python programming?
Anonymous Quiz
10%
Tuples
7%
Lists
70%
Class
14%
Dictionary
Some Python Features
Just one "amendment" on previous image about Python features, which is created by some training institute of IT.
it states that Python is Fast and one of our members already pointed that out as an issue.

Actually Python is not really fast and that is the reason why for example my company is not using it (even though it would be much easier to create all those machine learning models that we are working on in Python). But since we are getting 4000 user generated request per second in a peak time, it's just not possible to handle that with Python.

But in most other cases Python is perfect because it's easy to use and intuitive, and you can do much more with less lines of code compared to most of the other programming languages. For example simple reading from file in python is just

import pandas as pd
df = pd.read_csv('data.csv
')

while in Java I would need much more lines of code.
👍5
What will be the output of the following Python function?

len(["hello",2, 4, 6])
Anonymous Quiz
26%
Error
8%
6
56%
4
10%
3
👍52😁1
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