Build a Report Card Printer - Step 8

Tell us what’s happening:

Build a Report Card Printer Step-8
Assign score a value

Your code so far

name = 'Alice'
print(name, type(name))

is_student = True
print(is_student, type(is_student))

age = 20
print(age, type(age))

# User Editable Region
score = 80.5
# User Editable Region
print(isinstance(type, 80.5))

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0

Challenge Information:

Build a Report Card Printer - Step 8

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-report-card-printer/694648acde178bb8202d9515.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @testudo77,

Use isinstance() to check whether score is an int, and print the result to the terminal as shown in the example above.

Is isinstance checking the type of the variable score or something else?

Happy coding