python.land retweeted
👀 Use Python’s built-in help() function! It's an interactive way to explore documentation and learn more about Python objects and modules in the Python REPL! 📚
Examples:
help(str)
import os
help(os)
help(os.path)
etc.
python.land retweeted
💡 Do you know #Python’s any() and all() functions? These are powerful tools for evaluating iterables! any() returns True if at least one element of an iterable is true. all() returns True only if all elements of an iterable are true.
python.land retweeted
🐍 #Python Tip: Want to remove the last letter from a word using slicing? Here's how:
word = "Python"
new_word = word[:-1]
print(new_word) # Outputs 'Pytho'
Learn more here: python.land/introduction-to-…
python.land retweeted
🔄 Python’s itertools module is a collection of fast, memory-efficient tools that are useful for working with iterators (e.g., loops). Explore more: docs.python.org/3/library/it… #Itertools #Coding #Developer
python.land retweeted
If you’ve been exploring the fascinating world of AI and generative AI (like ChatGPT), you’ve undoubtedly run into the term Python. So what exactly is Python, and why is it often linked with AI? Should you learn Python? 👇
#ChatGPT #ArtificialIntelligence #Python
python.land retweeted
My next programming language to learn is...
80%Python
0%Go
10%JavaScript/Typescript
10%Something else (comment!)
10 votes • Final results python.land retweeted
Installing #Python packages system-wide can cause a lot of troubles once you upgrade your Python installation in the future. You can use pipx to save you from the drama that's usually involved with system-wide packages! Read about it here 👇
python.land/virtual-environm…
python.land retweeted
With Python, we can return multiple values at once. All you need to do is list your values after the return statement, separated by commas.
Click the link to try it interactively:
crumb.sh/YVLsjts5j93
python.land retweeted
What is the most impressive thing you've used Python for or seen Python being used for? This can be anything from a small-scale library that impressed you to large projects or whatever else it is that impressed you most. #AskTwitter #Python #pythonprogramming
python.land retweeted
Comparing 3 Popular #Python REST APIs: Which One To Pick for your use-case?
python.land/create-a-python-…
python.land retweeted
Exception handling in #Python is the process of identifying and responding to errors in a program. In other words, it is a way to deal with errors that might occur in your program. Here's a TL;DR of exception handling
python.land retweeted
Are you struggling to learn #Python? What's the reason? Let me know which option you choose and why!
55%I'm procrastinating
9%I get lost in errors
27%Don't know where to start
9%Lack of time
11 votes • Final results python.land retweeted
How would you prefer to learn a programming language (e.g., Python)?
#programming #python #100DaysOfCode #twitterpoll
21%A text-based course
11%A video course
57%combined (text and video)
11%Something else (comment)
28 votes • Final results python.land retweeted
I just started learning #Python with the @python_land Python tutorial at python.land/python-tutorial. Wish him luck! :)
python.land/python-tutorial via @erikyan
python.land retweeted
Would you rather pay once for a course (e.g. $30/course) and have access to it as long as the site exists, or pay a much smaller monthly subscription (like $5) to get access to multiple courses for as long as you pay the monthly fee?
86%Pay once
14%Subscription
14 votes • Final results python.land retweeted
Want to learn Python properly? Use the code CYBERMONDAY on checkout for a 50% discount on all #Python courses at Python Land. python.land/shop #CyberMonday
python.land retweeted
A #Python range is an iterable object, and this object can return an iterator that keeps track of its current state. While reading this thread, you can open this URL and experiment with it:
crumb.sh/c4DmGj56QeV
python.land retweeted
There's a nifty little trick to print the contents of variables using f-strings. With this trick, Python prints both the variable name and its value. Pretty handy for debugging purposes!
crumb.sh/suDyy7G5k9Y


![>>> title = "python strings are awesome" >>> title.capitalize() 'Python strings are awesome' >>> title.title() 'Python Strings Are Awesome' >>> title.split() ['python', 'strings', 'are', 'awesome']](https://pbs.twimg.com/media/F7vnRh5WMAACUBH.png?name=small&format=webp)


