@Python__Taski
iAccount based inWest Asia
About this account
- Account based in
- West Asia
- Connected via
- West Asia Android App
Account-level information from X, not a live location or the device used for a specific post.
๐ Author, Python Tasks Adventures ๐ https://nitter.cf/t.co/q5LNWHeHZ2 ๐ฎ Programmer, PyAdventure โ free Python learning game https://nitter.cf/t.co/EXuNMYiqat
Joined September 2021
- Tweets322
- Following24
- Followers18
- Likes30
๐บ๏ธ My Python book is now available!
๐ Python Tasks Adventures
240 total components โ tasks, bonus tasks, tips, and exercises covering a wide range of Python concepts.
From spy encryption to restaurant queues to Olympic systems.
You don't just learn Python. You practice it.
โ
700+ pages
โ
Beginner to Advanced
โ
Every solution fully explained
๐ฅ Launch price: $34.99 for 2 weeks only โ then $44.99
๐ amazon.com/dp/B0H7NKVFX6
โโโโโโโโโโโโโโโ
๐ BEFORE YOU DECIDE โ SEE IT FOR YOURSELF
๐ Read a sample task here โ drive.google.com/file/d/1jjXโฆ
๐ Read more samples free on Amazon โ amazon.com/dp/B0H7NKVFX6
One page. Real story. Real code. Real explanation.
That's the standard of all tasks.
โโโโโโโโโโโโโโโ
#Python #LearnPython #PythonTips #100DaysOfCode #CodeNewbie
๐ Python Quiz:
What makes the last line get flagged when using /, while replacing it with // removes the warning?
#Python #Python #Pygame #Coding #Programming #PythonTips
Khalid | Python Tasks Adventurer ๐ retweeted
๐ Python has two ways to reach the first item:
x[0]
Normal entrance. ๐ช๐
x[-len(x)]
The Python snake climbed through the window, crossed the roof, and still arrived at the same place. ๐๐
#Python #LearnPython #PythonTips #100DaysOfCode #CodeNewbie
Small thing I made: guardlist.
You know how modifying a list inside a for loop silently skips items?
Python protects dicts from that but not lists. GuardedList fixes that with a proper error message.
pip install guardlist
pypi.org/project/guardlist/
#Python
#Python #Pygame #Coding #Programming #PythonTips
@driscollis
Khalid | Python Tasks Adventurer ๐ retweeted
๐ A year of work turning Python into an adventure.
PyAdventure โ a free learning game built entirely with Pygame.
๐ Travel through 10 unique worlds, from Ancient Forests and Desert Ruins to Frozen Lakes, Mystic Archives, and Sky Castles.
But every world is more than a new landscape.
Each one teaches a real Python concept:
โ๏ธ Variables and data types
โ๏ธ Conditions and loops
โ๏ธ Lists and dictionaries
โ๏ธ Functions and error handling
โ๏ธ Object-oriented programming
โฆand more.
Answer questions. Overcome obstacles. Unlock the gate. Enter the next world.
And waiting at the end is the Dragon of Truth ๐
A real final battle where every Python skill you have learned is put to the test.
Can you master Python and defeat the Dragon?
๐ฎ Free. Windows download.
khalidmfy.itch.io/pyadventurโฆ
#Python #100DaysOfCode #CodeNewbie
Khalid | Python Tasks Adventurer ๐ retweeted
Pythonistas ๐โจ
Iโd appreciate your support.
If you enjoy Python tips and clean code ideas, please support the account with a repost and a follow ๐๐ฅ
Your support helps the content reach more Python learners and developers.
Thank you
#Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode #Developer #AI #PythonTips
๐๐ฎ Pygamers, what do you think happens here?
Look carefully at the order of these lines:
screen = pygame.display.set_mode((600, 400))
pygame.draw.circle(screen, "white", (300, 200), 60)
screen.fill("green")
pygame.display.update()
What will appear on the screen?
A) A white circle on a green background
B) Only a green background
C) Only a white circle
D) An error
Whatโs your answer? ๐
#Python #Pygame #Coding #Programming #PythonTips
Khalid | Python Tasks Adventurer ๐ retweeted
๐บ๏ธ My Python book is now available!
๐ Python Tasks Adventures
240 total components โ tasks, bonus tasks, tips, and exercises covering a wide range of Python concepts.
From spy encryption to restaurant queues to Olympic systems.
You don't just learn Python. You practice it.
โ
700+ pages
โ
Beginner to Advanced
โ
Every solution fully explained
๐ฅ Launch price: $34.99 for 2 weeks only โ then $44.99
๐ amazon.com/dp/B0H7NKVFX6
โโโโโโโโโโโโโโโ
๐ BEFORE YOU DECIDE โ SEE IT FOR YOURSELF
๐ Read a sample task here โ drive.google.com/file/d/1jjXโฆ
๐ Read more samples free on Amazon โ amazon.com/dp/B0H7NKVFX6
One page. Real story. Real code. Real explanation.
That's the standard of all tasks.
โโโโโโโโโโโโโโโ
#Python #LearnPython #PythonTips #100DaysOfCode #CodeNewbie
๐ A year of work turning Python into an adventure.
PyAdventure โ a free learning game built entirely with Pygame.
๐ Travel through 10 unique worlds, from Ancient Forests and Desert Ruins to Frozen Lakes, Mystic Archives, and Sky Castles.
But every world is more than a new landscape.
Each one teaches a real Python concept:
โ๏ธ Variables and data types
โ๏ธ Conditions and loops
โ๏ธ Lists and dictionaries
โ๏ธ Functions and error handling
โ๏ธ Object-oriented programming
โฆand more.
Answer questions. Overcome obstacles. Unlock the gate. Enter the next world.
And waiting at the end is the Dragon of Truth ๐
A real final battle where every Python skill you have learned is put to the test.
Can you master Python and defeat the Dragon?
๐ฎ Free. Windows download.
khalidmfy.itch.io/pyadventurโฆ
#Python #100DaysOfCode #CodeNewbie
"AI wrote your code. Cool. Do you know if it's lying to you?"
"AI does everything now, why learn Python?" โ sure, and my GPS does everything too, until it confidently sends me into a lake. ๐๐
AI writes fast. It doesn't always write right. And if you can't read the code, you can't catch the bug โ you're just trusting a very confident robot with your project.
Python Tasks Adventures โ 240 tasks built to make you actually understand what your code does, so you're the one catching AI's mistakes, not the one drowning in them.
๐ Free sample: drive.google.com/file/d/1jjXโฆ
๐ Amazon: amazon.com/dp/B0H7NKVFX6
#Python #LearnPython #Programming #PythonTips #100DaysOfCode #CodeNewbie #TechBooks #Claude #ChatGPT #Copilot #Gemini
๐ Python has two ways to reach the first item:
x[0]
Normal entrance. ๐ช๐
x[-len(x)]
The Python snake climbed through the window, crossed the roof, and still arrived at the same place. ๐๐
#Python #LearnPython #PythonTips #100DaysOfCode #CodeNewbie
๐ Make It Pythonic
An empty list does not need a mirror. ๐
Instead of comparing it to another empty list:
if tasks == []:
print("No tasks today")
โจ Write it the Pythonic way:
if not tasks:
print("No tasks today")
In Python, an empty list is already treated as False.
So if not tasks: simply means:
โNo items here.โ
#Python #PythonCode #CodeNewbie #100DaysOfCode #PythonTips
๐บ๏ธ My Python book is now available!
๐ Python Tasks Adventures
240 total components โ tasks, bonus tasks, tips, and exercises covering a wide range of Python concepts.
From spy encryption to restaurant queues to Olympic systems.
You don't just learn Python. You practice it.
โ
700+ pages
โ
Beginner to Advanced
โ
Every solution fully explained
Launch price: $34.99 for 2 weeks only โ then $44.99
๐ bit.ly/PythonTasksAdventures
โโโโโโโโโโโโโโโ
๐ BEFORE YOU DECIDE โ SEE IT FOR YOURSELF
๐ Open a real task from inside the book โ bit.ly/PythonTasksSample
One page. Real story. Real code. Real explanation.
That's the standard of all tasks.
โโโโโโโโโโโโโโโ
#Python #LearnPython #PythonTips #100DaysOfCode #CodeNewbie
Use list comprehensions instead of manual append() loops
#Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode #Developer #AI #PythonTips
Khalid | Python Tasks Adventurer ๐ retweeted
๐ Avoid lists when uniqueness matters
#Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode #Developer #AI #PythonTips
๐ Avoid lists when uniqueness matters
#Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode #Developer #AI #PythonTips
๐ Make It Pythonic
Long conditions can make the reader stop and decode the line.
Give the important parts a name, and the code becomes easier to follow.
Instead of writing:
if age >= 18 and has_ticket and not is_banned:
print("You can enter")
โจ Write it the Pythonic way:
is_adult = age >= 18
has_valid_ticket = has_ticket
can_enter = is_adult and has_valid_ticket and not is_banned
if can_enter:
print("You can enter")
Now the final condition reads like a clear rule:
โCan this person enter?โ
When the condition has many parts, give each part a name.
#Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode #Developer #AI #PythonTips