#This is a single line comment

"""
This is a string, but it can be used as a comment
that has more than one line
"""


print("Hello world")


message = "Hello, Python!"
print(message)

message = "Hello, Python!"
print(message)
message = "Hello, Crash Course!"
print(message)


name = "john doe"

name_title = name.title()
print(name_title)

print(name.title())
print(name.upper())
print(name.lower())


first_name = "john"
last_name = "doe"
full_name = f"{first_name} {last_name}"
print(f"Hello, {full_name.title()}!")


print("Languages:\n\tPython\n\tC\n\tJavaScript")


name = " python "
print(name.rstrip())
print(name.lstrip())
print(name.strip())


url = "https://example.com"
print(url.removeprefix("https://"))
print(url.removesuffix(".com"))

message = "One of Python's strengths is..."

message2 = 'One of Python\'s strengths is...'




print(type(5)) # <class 'int'>
print(type(2.0)) # <class 'float'>


print(2 + 3)
print(3 - 2)
print(2 * 3)
print(3 / 2)


print(2 + 3)
print(3 - 2)
print(2 * 3)
print(3 / 2)

print(2 + 3 * 4) # 14
print((2 + 3) * 4) # 20


print(4 / 2) # 2.0
print(5 // 2) # 2 (integer division)
print(5 / 2) # 2.5
print(1 + 2.0) # 3.0


print(2 ** 3) # 8
print(3 ** 2) # 9



universe_age = 14_000_000_000
print(universe_age)



x, y, z = 0.1, 0, 0
print(x) # 0.1


MAX_CONNECTIONS = 5000 # all capital letters indicate that this is supposed to be a constant

"""

Exercises

2-1: Assign a message to a variable, then print it.(Create a variable like message = "Hello!" and use print() to show it)

2-2: Reassign the message variable and print again.(Change the value of your message variable to something else and print again)

2-3: Personal message to someone using a variable.(Use a variable like name = "Tom" and print a line like Hello Tom, how are you?)

2-4: Print a name in lowercase, uppercase, and title case.(Try using lower(), upper(), and title() methods on a name string)

2-5: Print a quote by a famous person.(Example: Albert Einstein once said, "A person who never made a mistake never tried anything new.")

2-6: Store the person’s name in a variable, and use it in your quote.(Use variables like famous_person and message to build the quote with an f-string)

2-7: Use \n and \t in a name, and use strip() methods.(Try adding whitespace and cleaning it with strip(), lstrip(), rstrip())

2-8: Remove .txt using removesuffix() from a filename.(Create a variable like filename = 'notes.txt' and remove the suffix)

2-9: Write 4 operations (add, sub, mult, div) that result in 8.(Use print() to show each result, like 5+3, 16/2, etc.)

2-10: Store your favorite number in a variable, and print a message with it.(Use a variable and f-string to display the number in a sentence)

2-11: Add comments to your previous programs.(Write at least one comment in each file using # to describe what the code does)

2-12: Run import this and skim through the Zen of Python.(Try it in the Python terminal or at the top of a script, and read the output)

"""


