100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Samenvatting

Summary OCR COMPUTER SCIENCE: PYTHON TO ERL GUIDE - By GCSEMastery

Beoordeling
-
Verkocht
-
Pagina's
2
Geüpload op
21-02-2025
Geschreven in
2024/2025

This is to accompany my paper 2 for OCR GCSE Computer Science J277. This is a guide containg absolutely all the python you need to know for the exam, with its equivalent in ERL (Exam Reference Lanuage which is the coding language used in the papers). If you have any queries please feel free to message me. Also if you find this useful please leave a review it helps alot! ENJOY!!!

Meer zien Lees minder
Instelling
Vak








Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Studie
Vak
School jaar
2

Documentinformatie

Geüpload op
21 februari 2025
Aantal pagina's
2
Geschreven in
2024/2025
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

PYTHON OCR REFERENCE LANGUAGE
SELECTION
If/elseif
if pi == 3.14: if pi == 3.14 then
print(“Good”) print("Good")
elif pi == 3: elseif pi == 3 then
print(“ok...”) print("ok...")
else: else
print(“wrong!”) print("wrong!")
endif
Switch/case
match name: switch name:
case "1": case "1":
print("1") print("1")
case "2": case "2":
print("2") print("2")
case default: default:
print("????") print("????")
endswitch
ITERATION
FOR (count-controlled)
for count in range(1,11,2): for count = 1 to 10 step 2
# 11 is exclusive print(count)
print(count) next count
WHILE (condition controlled) - pre-check. Might never run
while continue == “Y” While continue == “Y”
continue = input(“continue?”) continue = input(“continue?”)
endwhile
DO…UNTIL (condition controlled) - post-check. Will run at least once
do
continue = input(“continue?”)
until continue == “N”
STRING MANIPULATION text = “Hello”
What it does PYTHON ERL Return: “Hello”
Count the number of characters in a len(text) text.length 5
string
Extract characters from a string text[1:5] [x:y]: text.substring[1:4] [x:y]: ello
x: first character x: first character
y: last (exclusive) y: number of characters incl x
Slice characters from left/right - text.left(2) / text.right(2) He / lo
Convert string to UPPERCASE text.upper() text.upper HELLO
Convert string to LOWERCASE text.lower() text.lower hello
Concatenate/Join strings + + -
Finds ASCII value of the character ord(“A”) ASC(A) 65
Finds the character corresponding to chr(65) CHR(65) A
the ASCII value

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
GCSEMastery
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
10
Lid sinds
2 jaar
Aantal volgers
0
Documenten
15
Laatst verkocht
8 maanden geleden
GCSEMastery

Welcome to GCSEMastery your shortcut to GCSE success! All our notes are of high quality made closely following the exam board specification. In most notes the specification point is even named in BOLD before the summmary underneath it so you know that youv\'e covered everything!. We have notes for AQA RS, AQA Geography & Edexcel Combined Science all split by papers or the cheaper bundle package. Check out the sample pages and make your own judgement. Finally, ENJOY A SWEET RIDE THROUGH GCSE!!!! :)

Lees meer Lees minder
5,0

6 beoordelingen

5
6
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen