Create a variable age set to 25
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Create a variable age set to 25. Create a variable is_adult set to True if age is 18 or more, otherwise False. Print age, then the type of age, then is_adult on three lines.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.