Skip to content

kamoliddeenov/digits_and_number_beginner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome

DIGITS AND NUMBER (PRACTICE)

level

  • Basic
  • Beginner
  • Intermediate
  • Mixed
  • Advanced

Automated grading of homework assignments and tests

  • fork this repository
  • solve the task
  • commit with proper message
  • just push and check answer

Problems

Get length #1

A integer is given. Find the number of digits in it.

Example 1:

Input: num=5
Output: 1

Example 2:

Input: num=87
Output: 2

Constraints:

  • 0<=num<=105

Sum of digits #2

A integer is given. Find the sum of digits in it.

Example 1:

Input: num=5
Output: 5

Example 2:

Input: num=23
Output: 5

Example 3:

Input: num=200
Output: 2

Constraints:

  • 0<=num<=105

Warning

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

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%