Skip to content
MathsGenie logo
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

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]

Develop code Questions

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