Skip to content

Course home

Develop code

Develop code

EasyMediumHard
123456789101112131415161718192021222324
Question 21

Consider the following Python code snippet:

def verify_score(score):
    passing_score = 50
    if score >= passing_score:
        print("Pass")
    else:
        print("Fail")

Give the complete line of code from this snippet that creates and initialises a variable.

[1]
Markscheme

Develop code Questions

  1. IGCSE
  2. /Computer Science
  3. /Develop code

62 exam-style questions on Edexcel IGCSE Computer Science Develop code. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank