Ir al contenido principal

Entradas

Destacado

Python Fundamentals

  Day 1: Python Fundamentals Variables and data types # Integer count = 5 # Float price = 19.99 # String message = "Welcome to Python!" # Boolean is_active = True # List (mutable, ordered) fruits = ["apple", "banana", "cherry"] fruits.append("orange")   # you can modify it # Tuple (immutable, ordered) coordinates = (10.5, 20.3) # Dictionary (key-value pairs) person = {     "name": "Alice",     "age": 30 } # Set (unique values only, no order) unique_numbers = {1, 2, 3, 3, 2}  # becomes {1, 2, 3} # None (absence of a value) result = None Functions Loops Lists, dictionaries, tuples File I/O Project: To do List Python Utility Toolkit Repository: python-utility-toolkit Include programs such as: Calculator Password generator Unit converter Number guessing game Skills: Functions Input/output Error handling

Últimas entradas