Printing variables with specific format

Report a typo

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.

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))
printinputintstr

Create a free account to access the full topic