tutor.org.in

Free preview · Reading · 1 h 30 min

Python fundamentals and flow of control

Computer Science — Cambridge AS Level · 1. Python fundamentals and flow of control

In this lesson

  • Data types, operators and expressions
  • Conditional statements and loops
  • Debugging and errors

Explanation

  • Data types, operators and expressions
  • Conditional statements and loops
  • Debugging and errors

Worked example

for i in range(1, 6): print(i * i) prints the first five squares.

Practice

Write a program that prints all primes below 100.

Continue in the learning spaceEnrol to open every lesson, track your progress, hand in work for faculty review and ask your tutor.Enrol — ₹3,499 for 12 months