Computer Science
Python
Why It Matters:
Python is essential for programming at Edinburgh, widely used in AI, software, and
research.
Key Concepts:
1. Variables & Types – x = 10, name = "AI"
2. Loops – for i in range(5): print(i)
3. Functions – def square(n): return n * n
4. Data Structures – Lists and dictionaries
Coding Example:
def is_even(n):
return n % 2 == 0
Applications – Data analysis, web apps, machine learning
Video: Python in 100 Seconds – Fireship (YouTube)