8000 Updated questions · uceimmp/python@aed85ab · GitHub
[go: up one dir, main page]

Skip to content

Commit aed85ab

Browse files
committed
Updated questions
1 parent e0e8509 commit aed85ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

session_10/exercises/exercises_10.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# SECTION A
44
1. Create a Person class, initialise it with a name. Create a method for the Person class that will say hello to the name.
55

6-
2. Create a Circle class, initialise it with a radius. Create two methods for the Circle class: get_area() and get_circumference() which give both respective areas and circumference.
6+
2. Create a Circle class, initialise it with a radius. Create two methods for the Circle class: get_area() and get_circumference() which give both respective areas and circumference, to 2 decimal placese.
77
- Note: Area of a circle = πr ** 2
88
- Circumference = 2πr
9+
- Use the round() function to get the answer to 2 decimal places
910

1011
3. Create a Vehicle class, initialise it with, wheels, colour.
1112
Create a method for the miles and a method to display all this information.

0 commit comments

Comments
 (0)
0