forked from MojahiMotaung/python_dataTypes_test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic_test.py
75 lines (56 loc) · 1.2 KB
/
basic_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
def int_division():
"""
Task:
- Perform integer division of 7 by 2.
Return:
- The result of the division (integer).
"""
pass
def float_multiplication():
"""
Task:
- Multiply 3.0 by 2.
Return:
- The result of the multiplication (float).
"""
pass
def combine_operations():
"""
Task:
- Add the result of integer division and multiplication.
Return:
- The combined result (float).
"""
pass
def extract_word():
"""
Task:
- Extract the word 'awesome' from the string 'Python is awesome!'.
Return:
- The extracted word ('awesome').
"""
pass
def to_lowercase():
"""
Task:
- Convert the string 'Python is awesome!' to lowercase.
Return:
- The lowercase version of the string.
"""
pass
def count_o():
"""
Task:
- Count how many times the letter 'o' appears in the string 'Python is awesome!'.
Return:
- The count of the letter 'o'.
"""
pass
def evaluate_boolean():
"""
Task:
- Evaluate the expression 'not (5 > 3) and (10 == 5 * 2)'.
Return:
- The boolean result of the expression.
"""
pass