DEV Community

Cover image for POPCORN fresh girl code
anna lapushner
anna lapushner

Posted on

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!

Top comments (0)