Programming
Python - IITM 🐍
Week 1 Lecture Notes 🗒️ PRINT 👨🏽💻 Numbers are treated as numbers only when put without apostrophe/speech marks Strings require either single or double quotes Uses only round brackets () Uses comma to separate strings/variables print("Hello world") print('Hello world', 'Hello mom', 'Hello nietzsche') print(10) VARIABLES 🔤 💡 Use well defined names for variables instead of a/b/c etc.
May 8, 2025
Python 3 Cheatsheet (Enhanced Edition) 🐍
# Sample code demonstrating key concepts def main(): # String formatting example name = "Alice" age = 30 print(f"{name} is {age} years old") # Alice is 30 years old if __name__ == "__main__": main() Python 3 Cheatsheet (Enhanced Edition)Core Syntax Essentials 1.1 Variables & Data Types
May 8, 2025
Python Course 🐍
# Example of a simple Python script demonstrating core concepts def main(): # Basic print statement print("Welcome to Python Programming!") # Variable declaration and input name = input("Enter your name: ") print(f"Hello, {name}!") if __name__ == "__main__": main() Python Programming Foundation Course 1. Core Syntax & Basic Operations 1.1 Print Statements & Variables
May 8, 2025