Home  >  Article  >  Backend Development  >  POPCORN fresh girl code

POPCORN fresh girl code

PHPz
PHPzOriginal
2024-08-07 00:34:22475browse

POPCORN fresh girl code

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn