Sobes.tech
Middle

#Task 1 #Given a list: list_numbers = [2, 6, 3, 19, 10, 4, 11, 16, 12, 5, 4, 16, 1, 0, 8, 16, 10, 10, 8, 5, 1, 11, 10, 10, 12, 0, 0, 0] #Print YES if the list contains numbers 5 and 19, or NO if it does not; # Task 2 # Write a function remove_vowels(text: str): that: # Takes a string text as input. # Removes all vowels (Latin a, e, i, o, u – in any case) from the string. first_string = "Hello World!" second_string = "Python" third_string = "aeiou" # Task 3 # There are two dictionaries. Merge them so that when keys match, their values are summed. d_one = {'apple': 10, 'banana': 20, 'super_kiwi': 30} d_two = {'orange': 15, 'super_kiwi': 25, 'lemon': 5} # Result should be {'apple': 10, 'banana': 20, 'super_kiwi': 55, 'orange': 15, 'lemon': 5} # Task 4 """ Create a class BankAccount with methods deposit(amount) - Deposit withdraw(amount) - Withdrawal with balance check balance() - Print current balance """