Did you know?
Python is the only language that uses the ‘else’ clause within a ‘for’ loop.
You can write code like
for a in range(10,19):
print(a)
else:
print(‘this is quite awesome’)
you can then write
if 13<=age<=19:
print('teenager')
which saves time and computational cost if the 'age' variable is dependent on a function.
#learntocode
One tweet ahead of your peers.
This is a note to a budding developer.
Because it's super easy to lose your grip on your goals if you don't follow up on the important tasks that get you closer to them,
You should keep to-do lists of the learning content you want to go through daily and weekly.
This way you maintain your focus on the stuffs that really matter.
We know a python developer that already pinned @peerdotpi upcoming python masterclass.
Did you know?
A survey was made in the UK in 2015 in elementary schools and #Python overtook French as the most popular language taught.
6 out of 10 parents preferred their children to learn Python over French.
#learntocode
You can store a string as a variable which you can overwrite by reassigning another data to the variable.
name = 'Python' #stored string
name = 'Peerdotpi' #overwrite earlier stored string
But you cannot change the element/character in a stored string to another.
Consider this:
name = 'Python' #stored string
name[0]
>> 'P'
Try:
name[0] = 'T'
This brings up a 'type error' that tells you the object doesn't support assignment because a string object is immutable.
Cheers.
There are two ways you can learn to code in #Python.
1. Get videos and other resources, and teach yourself.
2. Get trained by an expert mentor directly.
Number 2 is faster, easier, gives you a lot of exposure and even makes number 1 a better experience.
There's a Python Masterclass coming up that gives you exactly this opportunity.
It's just a few days ahead but you should follow @peerdotpi to learn more about this.
You'll be surprised how much you can learn in one contact class.
May is another opportunity to keep going.
You have started well with the decision to make a difference with your skills.
Now keep at it with constant learning through the month.
It’s not just codes, it’s life.
Happy new month peers.
From Us @peerdotpi
Someone hacked my course website, proceeded to unlock the paid version for their their account, then emailed me to let me know about the vulnerability.
I’m not even mad, I’m impressed. Your account will remain unlocked, you earned it...
It's a notable day all over the globe today as we celebrate the achievements of women in many sectors of society.
For us @nhubfoundation it's another time to acknowledge the impact women have made technologically in Nigeria and Africa.
Python Tip 2: Help! I’m stuck.🤦🏾♀️🤦🏾♂️
When you encounter a new module in python, type dir(module_name) to list all the methods in the module. Type help(module_name.method_name) to get help on a particular method from a module.
#peerdotpi#pythonlearning#30dayswithPython
Python Tip 1: Case and Spaces
Python variable names are case sensitive. Name, name and NAME are different.
Spaces are important in python. Spaces at the beginning of a line indicate indentation. Python uses indentation to separate blocks of code. #30DaysOfPython#peerdotpi
Installation Guide:
For PC users:
1.Visit python.org and navigate to the download page.
2.Download the latest version of python available for your system.