Home > Backend Development > Python Tutorial > POPCORN fresh girl code

POPCORN fresh girl code

PHPz
Release: 2024-08-07 00:34:22
Original
588 people have browsed it

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 of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template