Search Header Logo

Python Basics - A level

Authored by A Brereton

Computers

10th - 12th Grade

Used 23+ times

Python Basics - A level
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Python is a ____ level language

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

To get the first piece of data out of a list, finish this piece of code:

list[_]

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

To get the last piece of data out of a list, finish this piece of code:

list[_]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

I have created a list called 'shopping'. I would like to add "milk" to the end of the list - what is the correct syntax?

shopping.append("milk")

shopping.append[milk]

shopping += "milk"

shopping += [milk]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default data type of input()?

string

int

depends what is entered

list

6.

OPEN ENDED QUESTION

3 mins • Ungraded

Can you explain what:

try:

num = int(input("Enter: "))

except:

print("Enter a number")

Does?

Evaluate responses using AI:

OFF

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

I would like to create a for loop which iterates from 1 to 15 - how do I finish this line of code:


for i in range(_________)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers