Automated grading of homework assignments and tests
- fork this repository
- solve the task
- commit with proper message
Convert data from file to list.
Example 1:
Input: "data01.txt"
Output: [1, 2, 3, 4, 5, 6, 7]
Constraints:
- 1 <= length(list1) <= 10^5
Find the number of characters in the file.
Example 1:
Input: "data02.txt"
Output: 28
Constraints:
- 1 <= length(list1) <= 10^5
Return the numbers as a list type.
Example 1:
Input: "data03.txt"
Output: ['0', '7', '0', '7', '0', '8', '1', '2', '9']
Constraints:
- 1 <= length(list1) <= 10^5
Return the str(non-digital) characters as a list type.
Example 1:
Input: "data04.txt"
Output: ['p', 'y', 't', 'h', 'o', 'n', '\n', 'c', 'o', 'd', 'e', 'r']
Constraints:
- 1 <= length(list1) <= 10^5
Find the number of digital and str(non-digital) data.
Example 1:
Input: "data05.txt"
Output: [9, 17]
Constraints:
- 1 <= length(list1) <= 10^5
Find the each row length.
Example 1:
Input: "data06.txt"
Output: [12, 2, 2, 6, 5, 6]
Constraints:
- 1 <= length(list1) <= 10^5
Find a sum of numeric characters.
Example 1:
Input: "data07.txt"
Output: 20
Constraints:
- 1 <= length(list1) <= 10^5
Find the largest of the numeric characters.
Example 1:
Input: "data08.txt"
Output: 7
Constraints:
- 1 <= length(list1) <= 10^5
Find the smallest of the numeric characters.
Example 1:
Input: "data09.txt"
Output: 0
Constraints:
- 1 <= length(list1) <= 10^5
Find the each row length and return the largest row.
Example 1:
Input: "data10.txt"
Output: 15
Constraints:
- 1 <= length(list1) <= 10^5
- don't copy other solutions or any solution
- don't remove comments