Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using python 3 to write those program 7. Write a function that creates a file with a specific name(input), writes your name to the file,

image text in transcribed

Using python 3 to write those program 7. Write a function that creates a file with a specific name(input), writes your name to the file, reads back from the file, then deletes the file. The function should return what is written in the file. input: string outputs: string 8. Write a function that counts the number of occurrence of a spe- cific character in a string. input: string, char output: int 9. Write a function to get the Python version you are using. input: None output: string 10. Write a function that will take in a list of email addresses and return the domain and extension of each. If there are multiple emails with the same domain and extension, do not duplicate in your list. For example, if the emails passed are: [testOne@gmail.com, testTwo@gmail.com, testThree@yahoo.com), your function should just return: [gmail.com, yahoo.com] input: list output: list

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions