instead of having to write
if age >= 13 and age <= 19:
print('teenager')
Python allows you to chain comparators without using the 'and' call.
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.
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.
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
🐍 2D lists in #Python
It's day 12 of LTC 😃. Today our rookie developers will be learning how to define 2-dimensional lists/array.
#peerdotpi #100DaysOfCode #30daysofPython
Quiz: Write python code to draw the diamond shape?
Extend your code to allow your user choose the size of the diamond.
#peerdotpi #pythonlearning
#30dayswithPython #100daysofcodechallenge
We help you identify your knowledge gaps and shorten your learning curve by building a co-learning culture.
#peerdotpi #AcademicTwitter #Technologies #developers #codingisfun #100DaysOfPython #100daysofcodechallenge
PeerPi is a peer-peer learning community focused on building expert developers that can compete at global levels and standards.
#peerdotpi #AcademicTwitter #Technologies #developers #codingisfun #100DaysOfPython #100daysofcodechallenge









