Lesson 2 of 16
Lesson Progress: 0%
Code Example
# Demonstrates data types
print(type(5))
print(type(3.14))
print(type("Hello"))
print(type("Welcome"))Instructions
▲ ← Click the triangle to hide or reveal instructions.Python Code Editor
Task Incomplete
Editor Input:
Editor Output:
| Data Type | Examples |
|---|---|
| Integer | 5 |
| Integer | 42 |
| Float | 3.14 |
| Float | 0.5 |
| String | "Hello" |
| String | "Welcome123!" |
| String | "Fun@Code#2026" |