Suppose you have three variables - `name` (str), `age` (int), and `is_graduated` (bool). You need to print these variables as follows: 'Name: ' followed by the name, 'Age: ' followed by the age, and 'Graduated: ' followed by graduation status. Fill the blanks in the code to achieve this.
Printing variables with specific format
Report a typo
Fill in the gaps with the relevant elements
name = "John Doe"
age = 25
is_graduated = True
("Name: " + name)
print("Age: " + (age))
print("Graduated: " + str(is_graduated))Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.