How would the principal help this teacher to create a vision for his class? Explain why it is important to learn about this during our studies and as the practising teaching during both the theoretical and practical aspects of teaching studies
Three long-term effects of workplace and discuss Three ways in which one can deal with the effects.
What are the purpose of the text
Justify the type of market structure that uber operate in and evaluate the likehood of uber making an economics profit in the long-run
Combined right angle triangle:
Sample input: 4
1st half:
1 2 3 4
5 6 7
8 9
10
2nd half:
17 18 19 20
14 15 16
12 13
11
Output should be combined pattern:
Combined pattern:
1 2 3 4 17 18 19 20
5 6 7 14 15 16
8 9 12 13
10 11
Use demand and supply analysis to analyse the possible impact of panic buying on market prices
A New Telephone Company has the following rate structure for long distance calls:
● The regular rate for a call is $0.10 per minute. (10 marks)
● Any call started at or after 6:00P.M. (1800 hours) but before 8:00A.M. (0800 hours) is
discounted 50 percent.
● Any call longer than 60 minutes receives a 15 percent discount on its cost (after any other
discount is subtracted).
● All calls are subject to a 4 percent federal tax on their final cost.
Programming Fundamentals – Assignment 1 (Spring 2022)
Write a program that reads the start time for a call based on a 24-hour clock and the length of the call.
The gross cost (before any discounts or tax) should be printed, followed by the net cost (after discounts
are deducted and tax is added). Print instructions to the user and compute the net cost. without using loops, functions
A statistics course has seven male and three female students. The professor wants to select two students at random to help her conduct a research project. What is the probability that the two students chosen are female?
what pieces of apparatus are needed to obtain solid lead (II) iodide from 20cm3 of aqueous lead(II) nitrate
Repeated Numbers
Eren wants to decode a number.After lots of trial and error, he finally figured out that the number is a count of repeated single-digit integers.
Write a program to help Eren print the decoded number given a string of integers N.
Input
The first line contains a string of integers N.
Output
The output contains a single integer representing count of repeated numbers in the input.
Explanation
For N = 212311 ,
1 and 2 are repeated.Therefore, the output is 2.
Sample Input1
212311
Sample Output1
2
Sample Input2
111
Sample Output2
1
Note: This site already given answer but it was not executin
answer:
N = input()
digits = [0]*10
for ch in N:
d = int(ch)
digits[d] += 1
cnt = 0
for d in digits:
if d > 1:
cnt += 1
print(cnt)
error:
Traceback (most recent call last):
File "main.py", line 5, in <module>
d = int(ch)
ValueError: invalid literal for int() with base 10: ' '