Anaconda
Anaconda @anacondainc ยท
A Stanford and Berkeley study showed models retrieve answers best at the start or end of context and struggle in the middleโ€”sometimes worse than if they had no context at all. This weekโ€™s #PythonTips breaks down the research (links in the comments) and how to write prompts.
650
aManCalledD
aManCalledD @designdaddee ยท
One set of () can break your ETL pipeline. ๐Ÿ Many assume .endswith() takes multiple arguments like a filter. It doesn't. You MUST use a Tuple for multiple matches. โŒ .endswith('csv', 'pdf') โœ… .endswith(('csv', 'pdf')) Save those TypeError headaches! #PythonTips
5
PythonHQ
PythonHQ @PythonHQ ยท
Want to simplify repetitive tasks by using Python's list comprehensions? ๐Ÿงฉ They are a quick way to create lists and work more efficiently. #PythonTips For example, let's create a list of squares for numbers from 1 to 10 in one line:l
2
KSR Datavizon
KSR Datavizon @ksrdatavizon ยท
๐‘จ๐’”๐’”๐’Š๐’ˆ๐’๐’Ž๐’†๐’๐’• ๐’—๐’” ๐‘ช๐’๐’Ž๐’‘๐’‚๐’“๐’Š๐’”๐’๐’ ๐’Š๐’ ๐‘ท๐’š๐’•๐’‰๐’๐’ - ๐’๐’๐’† ๐’”๐’Š๐’Ž๐’‘instagram.com/reel/DWJv-6-kSโ€ฆ๏ฟฝ ๐’”๐’‚๐’—๏ฟฝ๏ฟฝ๐’” ๐’š๐’๐’– ๏ฟฝ๏ฟฝ๐’“๐’๐’Ž ๏ฟฝ๏ฟฝ๐’–๐’ˆ๐’”! https://t.co/cld1hw41iM #Python #PythonTips #Coding #Programming #Debugging #TechEducation #CodingReels #AI #TechContent
KSR DATAVIZON (@ksr_datavision) โ€ข Instagram reel From instagram.com
21
Transaction Advisor.
Transaction Advisor. @SkyEocisystem ยท
"Level up your coding skills in 30 mins/dayโ€”master 1 new Python function, debug 2 small scripts, ask 1 smart question. Consistency beats perfection! #SkillUp #PythonTips"
3
Ngwe Becky
Ngwe Becky @BeckyIsInfinity ยท
Replying to @BeckyIsInfinity
The Problem ๐Ÿ” When you use open('file.json', 'w'), Python guesses the encoding based on your OS. ๐Ÿ’ป Windows might use cp1252. ๐ŸŽ Mac/Linux might use utf-8. If you index a French thesis on a Mac and search it on Windows, your index might break! ๐Ÿš๏ธ #PythonTips #Coding (2/5)
1
33
juan montalvo caldas
juan montalvo caldas @juanmontalvoc ยท
2h deep dive into Python list comprehensions + 15 practice problems solved! Grasped the "for...if" logicโ€”now itโ€™s my go-to for concise loops. Small daily wins = big progress. #CodingJourney #PythonTips
1
6
Tips Excel
Tips Excel @gudanglifehack ยท
Replying to @clcoding
@clcoding Wow this is called Pythonic code! ๐Ÿ”ฅ From complicated using `temp` to only 1 line: `a, b = b, a` Pikachu immediately level up using glasses ๐Ÿ˜Ž๐Ÿ Who else immediately fell in love with Python when they found this trick? #PythonTips #LifeHackCodeโ€
183
Zainab Khan
Zainab Khan @PyTechWizard ยท
Python Tip: Use enumerate() to get both index & value in a loop: for i, val in enumerate(my_list): print(i, val) Saves time and keeps code clean โœจ #PythonTips #Coding
5