"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > POPCORN fresh girl code

POPCORN fresh girl code

Published on 2024-08-07
Browse:727

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!

Release Statement This article is reproduced at: https://dev.to/anna_lapushner/popcorn-fresh-girl-code-29kh?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3