Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Mohd Nomaan Amdani
PLUS
Mohd Nomaan Amdani
Courses Plus Student 168 Points

python

Can somebody help me solving these problems ?

This function will take one parameter a) The parameter will be of string data type. There is no need to check for data types. I will only pass string data types. I will not pass whitespace characters in the string. 2) The function will iterate through all the characters of the string data type and append each character to the appropriate file. a) If none of the categories apply, skip the character 3) Add a new line character to the end of the file after completing Step 2) 4) This function has no return value.

This function will take two parameters a) First param is the file name to search b) Second param is a number that represents a line number to read from. The value of 1 should be the minimum value. 2) The function returns a) False if the file doesn’t exist b) None if the line number does not exist i) E.G., if there are 5 lines in the file, but the value of 7 is passed c) The string data of the specified line in the file

This function will take one parameter a) An integer number. 2) The function will multiply the content of all three module files. E.G. File_1 content = “I love python. ” File_2 content = “Mondays are cool. ” File_3 content = “HelloWorld. ” After running task3(3) File_1 content = “I love python. I love python. I love python.” File_2 content = “Mondays are cool. Mondays are cool. Mondays are cool.” File_3 content = “HelloWorld. HelloWorld. HelloWorld.”

1 Answer

Steven Parker
Steven Parker
229,670 Points

What kind of help do you need? Please show the code you have written so far.