Forwarded from Machine Learning with Python
Iβm Eng. Hussein Sheikho
Promote your ad across all our listed channels for only $45!
Your ad will be published for 20 days across all our channels,
plus it will be pinned for 7 days
Want your tech channel to grow fast?
You can add your channel to our promo folder for just $20/month β
average growth rate 2000+ subscribers/month
Our Share folder (our channels)
https://t.me/addlist/8_rRW2scgfRhOTc0
Please open Telegram to view this post
VIEW IN TELEGRAM
Telegram
ENG. Hussein Sheikho
Experience in Deep Learning and Computer Vision + Python Project
Cheat sheet of Python string methods:
*
*
*
*
*
*
*
*
*
*
*
*
https://t.me/pythonReπ
*
lower() - converts to lowercase*
upper() - converts to uppercase*
capitalize() - capitalizes the first letter*
title() - capitalizes each word*
strip() - removes whitespace from the beginning and end*
startswith() / endswith() - checks the beginning and end of a string*
replace() - replaces a substring*
split() - splits a string into a list*
join() - joins elements into a string*
find() / index() - searches for the position of a substring*
count() - counts occurrences*
isnumeric() - checks if the string contains only numbershttps://t.me/pythonRe
Please open Telegram to view this post
VIEW IN TELEGRAM
β€1
Personal AI assistant in 5 minutes
No code. No card. Free π³
Works in Telegram, WhatsApp, or Discord β just send it tasks by voice or text. It gets things done, not just tells you how to do them.
β Create your personal AI assistant here β
getamplify.team
No code. No card. Free π³
Works in Telegram, WhatsApp, or Discord β just send it tasks by voice or text. It gets things done, not just tells you how to do them.
β’ reads and sends emails
β’ creates and edits Google Sheets
β’ uploads files to Google Drive
β’ works in Notion
β’ sends reminders
β’ generates PDFs, images, and videos
β’ actually makes life and work easier
β Create your personal AI assistant here β
getamplify.team
Personal AI assistant in 5 minutes
No code. No card. Free π³
Works in Telegram, WhatsApp, or Discord β just send it tasks by voice or text. It gets things done, not just tells you how to do them.
β Create your personal AI assistant here β
getamplify.team
No code. No card. Free π³
Works in Telegram, WhatsApp, or Discord β just send it tasks by voice or text. It gets things done, not just tells you how to do them.
β’ reads and sends emails
β’ creates and edits Google Sheets
β’ uploads files to Google Drive
β’ works in Notion
β’ sends reminders
β’ generates PDFs, images, and videos
β’ actually makes life and work easier
β Create your personal AI assistant here β
getamplify.team
π₯2π1
Learn Python Coding
Personal AI assistant in 5 minutes No code. No card. Free π³ Works in Telegram, WhatsApp, or Discord β just send it tasks by voice or text. It gets things done, not just tells you how to do them. β’ reads and sends emails β’ creates and edits Google Sheetsβ¦
A unique experience, I recommend you try it.
I've found a real goldmine for those preparing for interviews at FAANG companies.
"Complete FAANG Preparation" has over 12,000 items and includes:
β DSA (Data Structures and Algorithms) β 450 problems from Love Babbar, Striver's sheet, and Apna College's sheet.
β Computer Science Fundamentals β Operating Systems, Databases, SQL, Computer Networks, Object-Oriented Programming.
β System Design β Low-Level Design (LLD) and High-Level Design (HLD).
β Logic problems, tests, and puzzles in C++, Python, Java, and JavaScript.
It's all in one repository, and it contains practically everything you need.
https://github.com/AkashSingh3031/The-Complete-FAANG-Preparation
"Complete FAANG Preparation" has over 12,000 items and includes:
β DSA (Data Structures and Algorithms) β 450 problems from Love Babbar, Striver's sheet, and Apna College's sheet.
β Computer Science Fundamentals β Operating Systems, Databases, SQL, Computer Networks, Object-Oriented Programming.
β System Design β Low-Level Design (LLD) and High-Level Design (HLD).
β Logic problems, tests, and puzzles in C++, Python, Java, and JavaScript.
It's all in one repository, and it contains practically everything you need.
https://github.com/AkashSingh3031/The-Complete-FAANG-Preparation
β€4
Why identical arguments can create different entries in `lru_cache`? π€
The
Although both calls pass the same value, for the cache, these are different keys, so the function will be executed twice.
The order of named arguments can also affect how an entry is created in the cache.
Therefore, it is best to call cached functions in a consistent style: either by position or by name, in the same order.
π₯ A consistent call format prevents unnecessary cache misses and redundant execution of expensive operations.
#Python #lru_cache #Caching #Performance #ProgrammingTips #CodeBestPractices
β¨ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk
βοΈ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
The
lru_cache creates a key not only from the values of the arguments, but also from the way they are passed.load(True)
load(debug=True)
Although both calls pass the same value, for the cache, these are different keys, so the function will be executed twice.
print(load.cache_info())
# CacheInfo(hits=0, misses=2, ...)
The order of named arguments can also affect how an entry is created in the cache.
func(a=1, b=2)
func(b=2, a=1)
Therefore, it is best to call cached functions in a consistent style: either by position or by name, in the same order.
load(debug=True)
load(debug=True)
π₯ A consistent call format prevents unnecessary cache misses and redundant execution of expensive operations.
#Python #lru_cache #Caching #Performance #ProgrammingTips #CodeBestPractices
β¨ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk
βοΈ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
Telegram
AI PYTHON π
Youβve been invited to add the folder βAI PYTHON πβ, which includes 15 chats.
β€1