
Introduction to programming with Python
If you are learning to program in Python, make sure you have downloaded and installed a development environment onto your home PC/Mac. The simplest is IDLE which can be downloaded here and is free.
You could also create and run code in your web browser using the website repl.it but you’ll need to create an account if you want to keep your programs.
# 2Darray.py - use this for task 2
movies=[ ['Cars',2006], ['Wall-E', 2008] , ['Up', 2009],
['Coco',2017], ['Inside Out',2015] ]
for i in range(len(movies)):
print(movies[i][1], movies[i][0])
# 2DarraySearch.py - use this for task 3 and 4
movies=[ ['Wall-E', 2008] , ['Up', 2009], ['Coco',2017],
[ 'Cars',2006], ['Inside Out',2015] ]
year=int(input("Type in a year from 2008 to 2017:"))
print("These Pixar movies were released after", year)
for i in range(len(movies)):
if movies[i][1] >= year:
print(movies[i][1], movies[i][0])
Files for SQL activities: schoolDatabase.db and murderMostHorrid.db
GCSE theory topics
