helpful tip
one of the new things that I knew while coding with python and I thought it would help some people too.
let's say that
q = 'Name'
so, using .lower() or .upper() will give us
q.lower() or q = 'Name'.lower() ==> 'name'
q.upper() or q = 'Name'.upper() ==> 'NAME'
This code will be helpful when, for example, you are dealing with questions and you want to check if it's true or not. So, the best way is to use this code to be sure that the answer is one.
I wish that someone have found this tip helpful💕
4
0 comments
Jumana Majid
2
helpful tip
Data Alchemy
skool.com/data-alchemy
Your Community to Master the Fundamentals of Working with Data and AI — by Datalumina®
Leaderboard (30-day)
powered by