Top Tweets for #PythonGiants
π Hey #Python pros! π
Tackle these:
1οΈβ£ sum_even_values: Sum numbers divisible by 2 from all arguments! π
2οΈβ£ sum_floats: Add up only float values! π
3οΈβ£ interleave: Merge two strings,
like 'hi' & 'ha' β‘οΈ 'hhia'! π§΅
Share & let's see your magic! π₯
#PythonGiants
π Hey #PythonGiants! πβ¨
Dive into this challenge:
1οΈβ£ Craft extremes: Return the tuple of min & max from any iterable! π
2οΈβ£ Design max_magnitude: Find the number furthest from zero using max & abs! π
Share your solutions & let's amplify the code vibes! π₯ #Python
π #Python aficionados! π
Challenge: Craft an is_palindrome function!
π Palindromes read the same both ways.
Bonus: Disregard spaces & case.
Got the magic touch? Share your code spells! π₯ #PythonChallenge #CodeMastery #Palindrome #PythonGiants
@clcoding In the list k = [2,1,0,3,0,2,1], k.index(0) finds the first zero's index, which is 2. Now, guess how many times '2' appears in the list? Bingo! Twice. That's why k.count(k.index(0)) prints 2! π―π‘ #PythonPuzzles #CodeBreakdown #PythonGiants
π #Python fans! π
Ready for a code quest? π§ββοΈ
1οΈβ£ Lambda magic: Cube a number with cube.
2οΈβ£ Use map in decrement_list for -1 magic.
3οΈβ£ Banish negatives with remove_negatives & filter.
Who's diving in? Share your spells! β¨π₯ #PythonChallenge #PythonGiants #PSF #DataScience
@RealBenjizo In Python, 2 and 2.0 are seen as identical keys in a dictionary. So when you have {2.0: "love", 2: "Python"}, the latter overwrites the former. Result? Calling d[2.0] fetches "Python"! π #PythonFacts #PythonGiants
@EdwardKens50830 π Absolutely! The universe of Python is vast and magical. πβ¨ Can't wait to see the creative solutions everyone comes up with. Let's code and conquer! I used keyword arguments (kwargs) for mine and will share my solution shortly π₯ #PythonPower #CodeMagic #PythonGiants
@clcoding Each loop iteration prints the number twice: once on a new line and once space-separated. The loop breaks when a number is 30 or above. So, it prints 10, 20, and 30 before breaking, leading to the output '10 20 30' (A). #PythonGiants
@RealBenjizo In Python, the 'or' operator gives the first truthy value. Here, a is an empty list (falsy) and b is 2 (truthy). So, a or b returns 2. That's why the output is 2(C)! π #PythonGiants
Last Seen Hashtags on Sotwe
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
240.1M followers

Barack Obama 
@barackobama
119.3M followers

Donald J. Trump 
@realdonaldtrump
111.6M followers

Cristiano Ronaldo 
@cristiano
108.8M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
97.2M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
90.5M followers

KATY PERRY 
@katyperry
86.7M followers

Taylor Swift 
@taylorswift13
80.5M followers

Lady Gaga 
@ladygaga
72.1M followers

Kim Kardashian 
@kimkardashian
69.3M followers

YouTube 
@youtube
68.6M followers

Virat Kohli 
@imvkohli
68.4M followers

Bill Gates 
@billgates
63.4M followers

The Ellen Show
@theellenshow
62.5M followers

CNN 
@cnn
61.9M followers

Neymar Jr 
@neymarjr
60.9M followers

X 
@x
60.9M followers

CNN Breaking News 
@cnnbrk
59.9M followers

