100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Computer Science 0478 Chapter 8 - Programming in Python

Rating
-
Sold
-
Pages
19
Uploaded on
30-01-2025
Written in
2024/2025

Our programming chapter is an all-encompassing resource, meticulously compiled from textbook notes and every possible relevant source. It includes key explanations, mark scheme-oriented insights, and carefully curated links to websites that clarify complex concepts. This document is designed to make programming crystal clear, serving as the ultimate guide for mastering the subjects - just as it did for us. This document is the only one that any IGCSE Computer Science student would require to ace programming in python.

Show more Read less
Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Secondary school
School year
1

Document information

Uploaded on
January 30, 2025
File latest updated on
February 28, 2025
Number of pages
19
Written in
2024/2025
Type
Summary

Subjects

Content preview

Chapter 8 - Programming
Variables and Constants:


● Each variable and constant is one of these spaces in memory that is given an
identifier (A name given to a variable, constant, data structure or subroutine).

● Variable - A named memory location that stores data. The data can change whilst a
program is running.
● Constant - A named memory location that stores data. The data cannot change
whilst a program is running.




● Putting data into a variable is done using an assignment statement. The left-hand
side of the equals sign is the identifier. The right-hand side of the equals sign is the
value.




● To get data out of a variable, you just use its identifier.




1

,Converting between data types:




Number<-- int("123")
number = int("123")
Value<-- string(22.4)
value = str(22.4)


Input and Output:
● Input - A user entering data into the program, usually with a keyboard
● Output - Data that is displayed to the user, usually on-screen
● A program at some point, will have to give some information to the user. It does this
using OUTPUT.
● A program might need the user to input some data. To do this, the command word
‘INPUT’ is used. This cannot appear on its own, otherwise, the data entered will
disappear into space. So you need to do something with it, such as store it in a
variable.
Arithmetic operators: Instructs a program to perform calculations. Parentheses are used to
change the order of the calculations.




2

,Sequence:
● One of the three constructs within programs. A sequence is a series of statements
that are executed(run) once, in the order they are written.
Selection:
● Selection is the second of the three constructs. In selection, a condition is checked,
determining which, if any, code is run. There are two forms of selection - IF
statements and CASE statements.
● ELSEIF is used in Pseudocode and elif is used in Python.
● There is no CASE statement in Python.




3

, Conditions need logical operators, these allow for comparisons to be made:




Boolean operators:




Iteration:



4
$9.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
PrepWithIGCSENotes

Also available in package deal

Get to know the seller

Seller avatar
PrepWithIGCSENotes
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
10 months
Number of followers
0
Documents
8
Last sold
-
PrepWithIGCSENotes

From two IGCSE students who were completely clueless (seriously, we had no idea what we were doing) to miraculously achieving A*s in our subjects - we've experienced quite the journey. Early morning sleep-deprived study sessions, late night caffeine fuelled cramming and 'I'm totally failing this' texts... yeah, we've lived it. Through the chaos, we slowly started figuring things out, catching up to Cambridge's standard, and made insanely detailed notes from various sites and resources. These are the notes that saved us, and we hope they save you too. Brought to you from two best friends who've been in the trenches and made it out alive - PrepWithIGCSENotes, notes that just make sense.

Read more Read less
0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions