Practical Python: Learn Python Basics Step by Step- Python 3 - Python Level 2: Exercises – Solution

Practical Python: Learn Python Basics Step by Step- Python 3 - Python Level 2: Exercises – Solution

Assessment

Interactive Video

Information Technology (IT), Architecture, Other

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

This video tutorial covers four exercises in a Level 2 course. The first exercise involves asking for a user's name and age and printing the information. The second exercise focuses on adding two integers and printing the result. The third exercise involves creating a list of numbers, computing their average, and printing it. The final exercise demonstrates converting Celsius to Fahrenheit using a function. Each exercise is explained with code examples and tips for writing clean, readable code.

Read more

7 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the first exercise about?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

How do you add two integer numbers in the second exercise?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the purpose of the function created to add two numbers?

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Describe the importance of casting input values in the exercises.

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain how to compute the average of a list of float numbers.

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the formula used to convert Celsius to Fahrenheit?

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

What common errors should be avoided when working with parentheses in Python?

Evaluate responses using AI:

OFF

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?