"> ");
100%
LESSONS & TOPICS

Exercises Functions & Algorithm Description

Exercises Functions & Algorithm Description

 

 

Exercises

Exercise 1

Write a function that takes in two numbers, and sum them together. Make your function print out a sentence showing the two numbers, and the result.

Call your function with three different sets of numbers.

Exercise 2

Study the following python program. Try to figure out which is the problem that this program solves.

Exercise 3

Write a Python function to check whether a number is divisible by another number. Accept two integers values form the user.

 

Click the following link to get access to more exercises..