Write a program that will read user input and print the type using the ast.literal_eval() helper.
ast module
The true type
Report a typo
Sample Input 1:
7Sample Output 1:
<class 'int'>Write a program in Python 3
import ast
# put your code here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
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.