← Back to Dashboard

Introduction Basic Syntax: Hard Exercises HARD

"""
Topic 01: Introduction & Basic Syntax - HARD Exercises (5)

These exercises testing your attention to detail and ability to look for solutions.
"""

# Exercise 1: Print a large letter 'P' using only the '#' character and spaces.
# It should look something like this:
#  #######
#  #     #
#  #     #
#  #######
#  #
#  #
# Write your code below:


# Exercise 2: Print a representation of a simple "User Login" screen layout.
# Include a title, and placeholders for Username and Password.
# Example:
#   -------------------------
#   |      USER LOGIN       |
#   -------------------------
#   Username: [            ]
#   Password: [            ]
#   -------------------------
# Write your code below:


# Exercise 3: Use the 'sep' and 'end' parameters of the print() function together
# to print "A", "B", "C" separated by " -> " and ending the line with " !!!".
# Write your code below:


# Exercise 4: Print the result of this complex expression: (5 + 3) * (10 / 2) ** 2
# Explain what each part of the math operation does using comments.
# Write your code below:


# Exercise 5: Print a string that contains a backslash (\) without causing an error.
# Hint: Search for "raw strings" in Python or how to escape a backslash.
# Write your code below: