Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Resumen

Summary Computer Science 0478 Chapter 8 - Programming in Python

Puntuación
-
Vendido
-
Páginas
19
Subido en
30-01-2025
Escrito en
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.

Mostrar más Leer menos
Institución
Grado

Vista previa del contenido

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

Escuela, estudio y materia

Institución
Escuela secundaria
Año escolar
1

Información del documento

Subido en
30 de enero de 2025
Archivo actualizado en
28 de febrero de 2025
Número de páginas
19
Escrito en
2024/2025
Tipo
RESUMEN

Temas

$10.49
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor
Seller avatar
PrepWithIGCSENotes

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
PrepWithIGCSENotes
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
-
Miembro desde
1 año
Número de seguidores
0
Documentos
8
Última venta
-
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.

Lee mas Leer menos
0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes