Python L5 Tips Calculator

Python L5 Tips Calculator

6th - 8th Grade

6 Qs

quiz-placeholder

Similar activities

L1 Console, Variables and Creating a Program

L1 Console, Variables and Creating a Program

8th Grade

10 Qs

IDT S1 Final Review Part 2

IDT S1 Final Review Part 2

8th - 12th Grade

10 Qs

Python dla bardzo początkujących

Python dla bardzo początkujących

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 Basic

Python Basic

6th - 8th Grade

10 Qs

แบบทดสอบที่ 5 เรื่องการรับค่าในภาษาไพทอน (รายกลุ่ม)

แบบทดสอบที่ 5 เรื่องการรับค่าในภาษาไพทอน (รายกลุ่ม)

7th Grade - University

10 Qs

6 класс Python

6 класс Python

6th Grade

10 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

400

"False"

1.44

3.1425

int("456")

False

"Good Job!"

1890

True

4.

MATCH QUESTION

1 min • 1 pt

Match the function to what it does:

float()

Takes user input

f"{value:.2f}"

Shows 2 decimal places

input()

Converts to float

print()

Displays output

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
people
bill

Discover more resources for Computers