Back to tasks
A variable changes its type
BeginnerPython for kids 路 Lesson 15: type() - what type is a value?
Problem Statement
Put the number 5 into x and print the type of x. Then put the text "five" into x and print the type of x again.
<class 'int'>
<class 'str'>
Output Format
Exactly the text from the example.
Examples
Example 1
Output
<class 'int'> <class 'str'>