Skip to content

Python-2022M/file_handling_homework

Repository files navigation

Welcome

File Handling

Automated grading of homework assignments and tests

  • fork this repository
  • solve the task
  • commit with proper message

Problems

file01

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

file02

Find the number of characters in the file.

Example 1:

Input: "data02.txt"
Output: 28

Constraints:

  • 1 <= length(list1) <= 10^5

file03

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

file04

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

file05

Find the number of digital and str(non-digital) data.

Example 1:

Input: "data05.txt"
Output: [9, 17]

Constraints:

  • 1 <= length(list1) <= 10^5

file06

Find the each row length.

Example 1:

Input: "data06.txt"
Output: [12, 2, 2, 6, 5, 6]

Constraints:

  • 1 <= length(list1) <= 10^5

file07

Find a sum of numeric characters.

Example 1:

Input: "data07.txt"
Output: 20

Constraints:

  • 1 <= length(list1) <= 10^5

file08

Find the largest of the numeric characters.

Example 1:

Input: "data08.txt"
Output: 7

Constraints:

  • 1 <= length(list1) <= 10^5

file09

Find the smallest of the numeric characters.

Example 1:

Input: "data09.txt"
Output: 0

Constraints:

  • 1 <= length(list1) <= 10^5

file10

Find the each row length and return the largest row.

Example 1:

Input: "data10.txt"
Output: 15

Constraints:

  • 1 <= length(list1) <= 10^5

Warning

  • don't copy other solutions or any solution
  • don't remove comments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages