Build a Report Card Printer - Step 9

Tell us what’s happening:

Paso 9
La salida es False, lo que demuestra que scoreno es un int.

Otro tipo común de número en Python es float, que representa un número con decimales. Reemplace intcon floaten la llamada existente isinstance()para confirmarlo.

Por último, imprima scorey su tipo de dato para completar la boleta de calificaciones.

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
print(isinstance(score, type(float)))

# User Editable Region


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Build a Report Card Printer - Step 9

Welcome to the forum @cabreraclaudi199

You should replace int with float in the existing isinstance(score, int) call.

Part 1 of this step is to replace int. Carefully read what you are asked to replace int with.

Part 2 is another print call.

Happy coding

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.