Khalid | Python Tasks Adventurer ๐@Python__Task
Sep 24West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
๐ 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 ๐@Python__Task
Aug 24West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
๐ 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 ๐@Python__Task
Jul 12West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
๐บ๏ธ 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
Khalid | Python Tasks Adventurer ๐@Python__Task
May 18West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
๐ Today's Question!
You wrote 10 lines of code... then discovered you could do it in 3 lines.
What does your face do at that moment? ๐โจ
๐ Tell us in the comments โ we KNOW you've been there! ๐
#Python #PythonProgramming #Coding #CodingLife #Programmer #ProgrammingMemes #ProgrammingHumor #LearnPython #PythonCode #Developer #AI #ArtificialIntelligence #MachineLearning #DeepLearning
Khalid | Python Tasks Adventurer ๐@Python__Task
Apr 27West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
๐ Python fun
A tiny playful way to check even or odd:
#Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode
Khalid | Python Tasks Adventurer ๐@Python__Task
5 Apr 2025West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Python Quiz Time ๐
โYou want to randomly pick one item from a fixed set of values like "A", "B", and "C".
Which option is best to use with random.choice()? ๐ฏ
#Python #PythonCode #PythonTips #Coding #Programming #CodeNewbie #100DaysOfCode
Khalid | Python Tasks Adventurer ๐@Python__Task
2 Jan 2025West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
๐ Python Quiz: Understanding Enums with _generate_next_value_ ๐
What will be the output of the following code snippet?
#Python #PythonTips #PythonCode #codechallenge #100DaysOfCode
Khalid | Python Tasks Adventurer ๐@Python__Task
16 Sep 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Replying to @PythonDvz @Python_Dv
This code results in an error because strings in Python are immutable.
To modify it:
text = text[:1] + 'i' + text[2:]
Now, it will print "hillo"
#python #pythontips #100code
Khalid | Python Tasks Adventurer ๐@Python__Task
9 Aug 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Replying to @PythonDvz @Python_Dv
If you're concatenating multiple strings, .join() is the way to go for efficiency.
But for simple cases, f-strings combine Pythonic style and efficiency.
#Python #PythonTips #PythonCode #100DaysOfCode #CodeNewbie
Happy Pythoning! ๐๐
Khalid | Python Tasks Adventurer ๐@Python__Task
29 Jul 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Replying to @CodingComputing
1- Comments should delve into the 'why' behind the code, not just the 'what.' Instead of stating the obvious, provide context and reasoning.
Here's an example:
๐ซ Instead of:
Khalid | Python Tasks Adventurer ๐@Python__Task
24 Jul 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
๐งต 1/6: Speed Test: Word Counting in Python!
Curious about the fastest way to count words?
Let's dive into two methodsโget vs. setdefaultโand find out which one wins the race! ๐
We'll generate a paragraph using the Faker and compare the results.
#Python #100daysofcoding
Khalid | Python Tasks Adventurer ๐@Python__Task
18 Jul 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Replying to @treyhunner
I prefer to use the partition method to achieve this functionality as it provides a clean and clear way to split the string.
#Python #Coding #100DaysOfCode #python_task
Khalid | Python Tasks Adventurer ๐@Python__Task
15 Jul 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Replying to @s_gruppetta
The difference is due to generator vs. list comprehension:
Generator: Re-evaluates each loop, losing intermediate states.
List comprehension: Evaluates immediately, preserving each filtering step.
Happy Pythoning!
#Python #Coding #100DaysOfCode #python_task
Khalid | Python Tasks Adventurer ๐@Python__Task
10 Jul 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Replying to @CodingComputing
Counter? That's no fun! ๐ I prefer a little adventure with my code! ๐๏ธ But if you insist on making it easy:
#Python #Coding #100DaysOfCode #python_task
Khalid | Python Tasks Adventurer ๐@Python__Task
10 Jul 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Write a function that takes a string and counts occurrences of each character. ๐ข
Return a list of lists with characters and their counts. ๐
Although there's a built-in function for this, I want you to do it for practice.
#Python #100DaysOfCode #python_task
Khalid | Python Tasks Adventurer ๐@Python__Task
8 Jul 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Replying to @treyhunner
If I could add one feature to Python's standard library, it would be seamless time zone handling. This would simplify date and time manipulations and ensure accurate calculations across different time zones.
#Python #python_task #Coding #100DaysOfCode
Khalid | Python Tasks Adventurer ๐@Python__Task
4 Jul 2024West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Replying to @CodingComputing
Exactly! This technique can also be used in simultaneous assignments, like updating variables in loops.
Elegant Fibonacci sequence generation: โจ๐
#Python #PythonProgramming #Coding #100DaysOfCode #pyton_task
Khalid | Python Tasks Adventurer ๐@Python__Task
10 Apr 2023West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
Replying to @mathsppblog
Good morning to Python programmers who follow a style guide. Remember, when life gives you Spaghetti Code, just grab some PEPperoni and refactor it with confidence! ๐๐
Khalid | Python Tasks Adventurer ๐@Python__Task
6 Apr 2023West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
#Python_Task
The task is to add a user-defined column to tuples list.
#Python
#PythonCommunity
#100DaysOfCode
Khalid | Python Tasks Adventurer ๐@Python__Task
4 Apr 2023West Asia
West AsiaConnected via West Asia Android AppAccount-level information, not a live location or per-post device.
#Python_Task
Write a function called "index_longest_string" that accepts a list of strings as its parameter. It should find the index of the longest string in the list, and if all the strings are of the same length, it should return 0.
#Python
#PythonCommunity
#100DaysOfCode