iMocha's Python 3 Coding assessment test enables recruiters and hiring managers to evaluate candidates' mid-level python coding skills objectively and quickly. The test is useful for hiring job roles such as Python 3 Programmer (Jr. and Sr. Level), Full Stack Python Developer, and Data Scientist. Our Python 3 coding test can reduce hiring time by 45%.
Python 3.0 is also called Python 3000 or Py3K. Python 3.0 version is created to remove fundamental design flaws in the Python language. Some of the significant changes in Python 3 include adding support for optional function annotations and removal of Python 2 input function, including old-style classes, string exceptions, and implicit relative imports, among others.
Python 3 coding assessment test helps recruiters to evaluate the Python 3 programming skills of the candidate. Python 3 coding test is designed and validated by Python experts to assess and hire Python experts as per the industry standards.
Python 3 online test helps to screen the candidates who possess traits as follows:
With role-based access control, you can now maintain security within your account by providing access to each user based on their established role. Moreover, with the help of our advanced cheating prevention tools, you can allow candidates to take the coding test from anywhere in the comfort of their time zone.
Python 3 programming skills test may contain coding questions and innovative AI-LogicBox (Pseudo coding platform) questions to assess a candidate's coding skills in a fun and quick way.
You are given a string, which consists of decimal digits (0-9).
Each digit is made of a certain number of dashes, as shown in the image below.
For instance, 1 is made of 2 dashes, 8 is made of 7 dashes and so on.
In this seven-segment display the digits are created by, illuminating, following set of dashes:
1. 2 6. 6
2. 5 7. 4
3. 5 8. 7
4. 4 9. 6
5. 5 0. 6
Write a code that takes a string as input and returns the total number of dashes.
Input Format
A string of integers
Output Format
Number of dashes in the string
Sample Input
12134
Sample Output
18
Explanation
1 = > 2
2 => 5
1 => 2
3 => 5
4 => 4
2 + 5 + 2 + 5 + 4 = 18