Python started to feel fun for me when I made it my own. So you do you, and write those first lines of code in your name. For example:
name = "anna lapushner"
print (name)
anna lapushner
print (name.title())
Anna Lapushner
print (name.upper())
ANNA LAPUSHNER
print (name.lower())
anna lapushner
message = f'Hello, {full_name.title()}!'
print (message)
Hello, Anna Lapushner!
print (message.title())
print (message.upper())
print (message.lower())
Hello, Anna Lapushner!
HELLO, ANNA LAPUSHNER!
hello, anna lapushner!
#t is tab and indents
print (f'tHello, {full_name.upper()}!')
Hello, ANNA LAPUSHNER!
#n is return and moves to the next line
print (f'tHello,n{full_name.upper()}!')
Hello,
ANNA LAPUSHNER!
message = f'Keep up the good work, {full_name.title()}!'
print (message)
Keep up the good work, Anna Lapushner!
The above is the detailed content of POPCORN fresh girl code. For more information, please follow other related articles on the PHP Chinese website!