Python L5 Tips Calculator

Python L5 Tips Calculator

6th - 8th Grade

6 Qs

quiz-placeholder

Similar activities

Basics of Programming

Basics of Programming

8th Grade

10 Qs

python

python

7th Grade

10 Qs

Year 7 Python Lesson 1 Recap

Year 7 Python Lesson 1 Recap

8th Grade

10 Qs

Inputs and Booleans

Inputs and Booleans

3rd - 10th Grade

10 Qs

Introduction to Python, variables and data types

Introduction to Python, variables and data types

8th Grade

8 Qs

KOD ARAHAN PYTHON

KOD ARAHAN PYTHON

8th Grade

10 Qs

Input and Output Operations in Python

Input and Output Operations in Python

6th - 10th Grade

11 Qs

Python Inputs

Python Inputs

6th - 10th Grade

11 Qs

Python L5 Tips Calculator

Python L5 Tips Calculator

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

Future Teacher

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does input() return by default in Python?

int

float

string

boolean

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Fill in the blank to convert the bill input into a float:
bill = _______(input("How much is the total bill? "))

3.

CLASSIFICATION QUESTION

3 mins • 1 pt

Drag and drop the following data types into the correct category:

Groups:

(a) String

,

(b) Boolean

,

(c) Integer

,

(d) Float

3.1425

"Good Job!"

1890

True

1.44

int("456")

"False"

False

400

4.

MATCH QUESTION

1 min • 1 pt

Match the function to what it does:

print()

Shows 2 decimal places

float()

Converts to float

f"{value:.2f}"

Displays output

input()

Takes user input

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using f"{final:.2f}" in the Tips Calculator?

Convert string to float

Split the bill

Format the number to 2 decimal places

Round the number to the nearest whole

6.

LABELLING QUESTION

1 min • 1 pt

Fill in the blank to complete the code

a
b
bill
people