Python Learning
5.92K subscribers
426 photos
1 video
59 files
106 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
Python Basics

🔹 Variables = Store data for use in a program
x = 1

print(x) # Output: 1
🔹 Data Types = Classification of data (Boolean, String, Number)
number = 10

if number > 0:

print("The number is true") # Output: true



🔹 Operators = Symbols for performing operations (+, -, *, /, %, etc.)
print(1 + 2) # Output: 3

print(2 - 1) # Output: 1
🔹 Control Statements = Manage program execution flow

Conditional Statements → "if-then" logic
score = 85

if score >= 90:

print("Excellent")

elif score >= 75:

print("Good job")

else:

print("Keep trying")
Loop Statements → Repeat actions (for, while loops)
count = 1

while count <= 5:

print(count)

count += 1

🔹 Functions = Reusable blocks of code
def my_function():

print("Hello from a function")

my_function() # Output: Hello from a function
👍3
Python Question / Quiz

What is the output of the following python code?
👍3
Answer the question
Anonymous Quiz
36%
A
26%
B
15%
C
22%
D
Pandas Methods for Machine Learning
👍4
Convert JSON into Python Object
👍1🔥1
Remove Punctuation From a String in Python
🔥2
Text to Speech Using Python
🔥41
Number System Conversion
🔥5
any() and all() function in python
🔥3
Creating a Table using Python
👍8
Python File Method
🔥7
Learn how to Encrypt PDF files using Python
6
Map Function in Python
👍6🔥1
Python Roadmaps from Beginner to Advanced Level
4
While Loop in Python
8
Generate QR codes in Python
4👍2🔥1
Generate a Piechart in Python using the Matplot Library
5
Python String Formatting Based on Placeholders
3
Python LAMBDA function (Basic Syntax)
🔥51
Transform a real image to Pencil Sketch using Python
6👍1