๐Ÿ“– 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
Include

Only show posts containing:

Exclude

Hide posts containing:

Time range
-
Minimum likes
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
Sep 24
๐Ÿ Python Quiz: What makes the last line get flagged when using /, while replacing it with // removes the warning? #Python #Python #Pygame #Coding #Programming #PythonTips
26
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
Aug 24
๐Ÿ 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
2
1
1
5
4,678
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
Jul 12
๐Ÿ—บ๏ธ 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
1
1
2
451
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
May 18
๐Ÿ 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
1
2
165
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
Apr 27
๐Ÿ Python fun A tiny playful way to check even or odd: #Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode
1
1
2
303
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
5 Apr 2025
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
1
1
2
87
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
2 Jan 2025
๐Ÿ Python Quiz: Understanding Enums with _generate_next_value_ ๐ŸŽ‰ What will be the output of the following code snippet? #Python #PythonTips #PythonCode #codechallenge #100DaysOfCode
1
7
1,566
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
16 Sep 2024
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
12
545
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
9 Aug 2024
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! ๐Ÿ˜Š๐Ÿ
1
1
161
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
29 Jul 2024
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:
2
2
2
218
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
24 Jul 2024
๐Ÿงต 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
1
2
286
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
18 Jul 2024
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
2
53
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
15 Jul 2024
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
1
6
341
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
10 Jul 2024
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
1
1
1
96
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
10 Jul 2024
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
1
3
1,235
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
8 Jul 2024
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
2
1
81
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
4 Jul 2024
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
2
3
281
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
10 Apr 2023
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! ๐Ÿ๐Ÿ
1
3
144
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
6 Apr 2023
#Python_Task The task is to add a user-defined column to tuples list. #Python #PythonCommunity #100DaysOfCode
2
61
Khalid | Python Tasks Adventurer ๐Ÿ
@Python__Task
4 Apr 2023
#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
2
2
144