Run Program ❯
Python Home
❯
Run Code
Change Orientation
# String - sequence of characters name = "Python" print("String example:", name) print("First character of string:", name[0]) # List - mutable sequence fruits = ["apple", "banana", "cherry"] print("List example:", fruits) fruits.append("orange") print("List after append:", fruits) # Tuple - immutable sequence coordinates = (10.5, 20.3) print("Tuple example:", coordinates) print("Second value in tuple:", coordinates[1]) # Range - sequence of numbers numbers = range(1, 6) # 1 to 5 print("Range example converted to list:", list(numbers))