- Find the sum of first n positive integers.
- Identify the email service providers for the list of email ids.
emails = ['test1@gmail.com','test2@outlook.com','test3@yahoo.com','test4@gmx.com','test4@mail.com','test4@post.com']STRING DATA:
std_code = "11 Delhi, 22 Mumbai, 33 Kolkata, 44 Chennai, 40 Hyderabad, 80 Bangalore, 20 Pune, 79 Ahmedabad"
LIST OUTPUT:
std_code_list['11 Delhi', ' 22 Mumbai', ' 33 Kolkata', ' 44 Chennai', ' 40 Hyderabad', ' 80 Bangalore', ' 20 Pune', ' 79 Ahmedabad']Dictionary output:
{'Delhi': 11, 'Mumbai': 22, 'Kolkata': 33, 'Chennai': 44, 'Hyderabad': 40, 'Bangalore': 80, 'Pune': 20, 'Ahmedabad': 79}-
Find the Sum of Digits in a Number.
Eg: number = 256 Solution = 2+5+6 = 13 -
Display the Fibonacci Sequences up to nth Term Where n is Provided by the User.
Hint: In a Fibonacci sequence, the next number is obtained by adding the previous two numbers. The first two numbers of the Fibonacci sequence are 0 and 1.
