Python CHEAT sheet

👇🧵 Highlights and download

1. Base Types

For calculations
✔️ int + float

For program flow
✔️ bool

For text and data
✔️ str + bytes

👇🧵
2. Data Structures

Most common
✔️ list + dict

Common indirect use
✔️ tuple

👇🧵
3. Variable Assignment

Highlights
✔️ a = b = c = 0 # same value
✔️ a, b = b, c # swap values

👇🧵
4. Conversions

Trick:
"one two three" -> "one-two-three"
👇
'-'.join("one two three".split())

👇🧵
5. Conditional Statement

Check if in list:
if item in ['foo', 'bar']:
# item is foo or bar
else:
# item not foo or bar

👇🧵
6. Boolean Logic

Priority is NOT, then AND, then OR

Example:
True or False and False -> TRUE

👇🧵
7. Display and Input

f-string example

name = Python
age = 2023 - 1991
print(f'{name} is {age} years old')

👇🧵
The full cheat sheet includes
✔️ loops
✔️ files
✔️ sequences
✔️ list + dict operations
✔️ string operations
...and much more

https://t.co/8HH5vMpBSy

More from Learn Python With Rune

Top 10 Data Science Projects with Python

✔️ 10 Datasets
✔️ 10 Projects with solution

👇🧵

1️⃣ Project: Detecting Spam

✔️ Big email dataset
✔️ 35.000+ spam and ham messages
✔️ Learn how to filter

https://t.co/wvNSeFSbmr

Solution 👇🧵

1️⃣ Solution: Detecting Spam

✔️ How to build a spam filter
✔️ Using Scikit-learn
✔️ Naive-Bayes and

2️⃣ Project: Music Recommendation

✔️ Million Song Dataset
✔️ Metadata for a million songs

https://t.co/QgdSdIYnVV

Solution 👇🧵

2️⃣ Solution: Music Recommendation

✔️ Using Tableau
✔️ Collaborative-filtering engine
✔️ Similar to YouTube
Want to learn Django?

Check out these 8 free resources.

see 👇🧵

Get started with Django

Covers
- Installing and creating first project
- Working with templates
- Authentication frameworks
...and much more

More resources

Django Admin Cookbook

How to do things with Django admin
- Create two admin sites
- Bulk and custom actions
- Working with permissions
...and much more

https://t.co/NM0Nby5NwB

More 👇🧵


Django ORM cookbook

How to do things using Django ORM
- How to do OR/AND queries in ORM
- CRUD with ORM
- Database modelling
...and much more

https://t.co/tYjdbiYpWU

More 👇🧵


Building APIs with Django and Django Rest Framework

Learn about
- Simple API with pure Django
- Serializing and Deserializing data
- Access control
...and much more

https://t.co/gQTDxiG3wX

More 👇🧵

More from All

ChatGPT is a phenomenal AI Tool.

But don't limit yourself to just ChatGPT.

Here're 8 AI-powered tools you should try in 2023:

1. KaiberAI

@KaiberAI helps you generate beautiful videos in minutes.

Transform your ideas into the visual stories of your dreams with this Amazing Tool.

New features:
1. Upload your custom music
2. Prompt Templates
3. Camera Movements:

Check here

https://t.co/ivnDRf628L


2. @tldview TLDV

Best ChatGPT Alternative for meetings.

Make your meetings 10X more productive with this amazing tool.

Try it now:

https://t.co/vOy3sS4QfJ


3. ComposeAI

Use ComposeAI for generating any text using AI.

It’s will help you write better content in seconds.

Try it here:

https://t.co/ksj5aop5ZI


4. Browser AI

Use this AI tool to extract and monitor data from any website.

Train a robot in 2 minutes to do your work.

No coding required.

https://t.co/nNiawtUMyO

You May Also Like

Knowledge & Bharat : Part V

The Curriculum of Vedic Education :
According to the Ancient Indian theory of education, the training of the mind & the process of thinking, are essential for the acquisition of knowledge.

#Thread


Vedic Education System delivered outstanding results.  These were an outcome of the context in which it functioned.  Understanding them is critical in the revival of such a system in modern times. 
The Shanthi Mantra spells out the context of the Vedic Education System.


It says:

ॐ सह नाववतु ।
सह नौ भुनक्तु ।
सह वीर्यं करवावहै ।
तेजस्वि नावधीतमस्तु मा विद्विषावहै ।
ॐ शान्तिः शान्तिः शान्तिः ॥

“Aum. May we both (the guru and disciples) together be protected. May we both be nourished and enriched. May we both bring our hands together and work

with great energy, strength and enthusiasm from the space of powerfulness. May our study and learning together illuminate both with a sharp, absolute light of higher intelligence. So be it.”

The students started the recitation of the Vedic hymns in early hours of morning.


The chanting of Mantras had been evolved into the form of a fine art. Special attention was paid to the correct pronunciation of words, Pada or even letters. The Vedic knowledge was imparted by the Guru or the teacher to the pupil through regulated and prescribed pronunciation,