Question: Please program like begginer! copy / paste solutions from chat gpt are no welcome! Please dont just use chat gpt and copy paste solutions. Program
Please program like begginer! copypaste solutions from chat gpt are no welcome!
Please dont just use chat gpt and copy paste solutions. Program like beginner!
Task Count the vowels and consonants
Wite a countvowelsconsonants function that takes a string and returns a dictionary with the number of vowels i by the number of consonants in the text.
vowels "aeiouABIOU"
consonants "bedfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVNXYz"
example:
velo popularan.
print countvowelsconscmanta tekse
ivowels: 'consonanta':
Task
Exercise : Prime numbers
Write a function isPrime that receives an integer and returns True if the number is prime, and False if it is not A prime number is a natural number greater than that is divisible only by and itself.
Example:
beginarrayl
text printiaPrime# True
text printisPrime& Palse
endarray
Write a function primesinrange that receives two arguments: start and end and returns a list of all prime numbers in that range.
Example:
text print primesinrange text mathbbH
Task : Write the following functions:
A function that returns an ntuple with the first and last elements of a list in one line of code.
ista
prlatpreviiadnjlLsta
A function that ntuples the maximum and minimum element of the list, without using builtin functions
ta
A function that receives two sets and returns a new set with the elements contained in both sets.
skup
skumt
printpresjeklakup akup
Task Turn the dictionary over
Write a function that receives a dictionary and returns a new dictionary in which the keys and values have been replaced. Example:
pristatenirimenikrimenib
Ivan: 'ine', 'Trie' 'prenime', : dbb
Task Grouping elements by parity
White a function that receives a list of numbers and returns a dictionary with two lists: one for even numbers and one for odd numbers.
ta
priatgraptrafpeparitetuiata
Example:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
