-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpatterns.py
More file actions
53 lines (40 loc) · 1.29 KB
/
patterns.py
File metadata and controls
53 lines (40 loc) · 1.29 KB
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
def count_items(items):
# TODO: Return the number of items in the list
pass
def sum_numbers(numbers):
# TODO: Return the sum of all numbers in the list
pass
def find_largest(numbers):
# TODO: Return the largest number in the list
pass
def count_even_numbers(numbers):
# TODO: Return the count of even numbers in the list
pass
def sum_digits(number):
# TODO: Return the sum of digits in the given number
pass
def count_vowels(string):
# TODO: Return the count of vowels in the string (case-insensitive)
pass
def multiply_list_elements(numbers):
# TODO: Return the product of all elements in the list
pass
def create_number_triangle(n):
# TODO: Return a list of strings representing a number triangle
# Example for n=3: ['1', '22', '333']
pass
def fibonacci_sequence(n):
# TODO: Return a list of first n Fibonacci numbers
pass
def remove_vowels(string):
# TODO: Return the string with all vowels removed
pass
def create_multiplication_table(n):
# TODO: Return a 2D list representing multiplication table up to n
pass
def count_character_frequency(string):
# TODO: Return a dictionary with character frequencies
pass
def reverse_words(sentence):
# TODO: Return the sentence with each word reversed
pass