Python Answers

Questions answered by Experts: 5 288

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Write a program to count Vowels and Consonants in string.


Day Name - 2

Given the weekday of the first day of the month, determine the day of the week of the given date in that month.

Input

The first line is a string

D. The second line is an integer N.Output

The output should be a string.

Explanation

In the given example,

D = Monday. As the 1st of the day of the month is a Monday, it means the 7th and 14th of the month will be Sundays (A week has 7 days). So the 16th day (N = 16) of the month will be a Tuesday.So, the output should be

Tuesday.


Denominations - 3

Write a program to find the minimum number of notes required for the amount

M. Available note denominations are 500, 50, 10, 1.Input

The first line is a single integer

M.Output

Print

M in denominaitons.Explanation

Given

M = 1543, it can be written as1543 = 3*(500) + 3*(50) + 0*(10) + 1*(3)Then the output should be

500: 3 50: 0 10: 4 1: 3


Denominations - 4

Write a program to find the minimum number of notes required for the amount

M. Available note denominations are 2000, 500, 200, 50, 20, 5, 2, 1.Input

The first line is a single integer

M.Output

Print

M in denominations.Explanation

Given

M = 2257 Then 2257 can be written as

2000 * 1 + 500 * 0 + 200 * 1 + 50 * 1 + 20 * 0 + 5 * 1 + 2 * 1 + 1 * 0So the output should be

2000:1 500:0 200:1 50:1 20:0 5:1 2:1 1:0.


Temperature Conversion

You are given the temperature T of an object in one of Celsius, Fahrenheit, and Kelvin scales.

Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.

Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.

Formula to convert from Kelvin K to Celsius C is C = K - 273.

Here "C", "F", "K" represent that the temperature scale is in Celsius, Fahrenheit and Kelvin scales respectively.

The input contains the temperature (a number) and the unit of the temperature scale (C, F, K) without any space.

The output contains temperature in Celsius, Fahrenheit and Kelvin scales in each line in the format similar to input and the value of the temperature is rounded to 2 decimal places.


Input


The first line of the input contain a temperature Value in one of Celsius, Fahrenheit, and Kelvin scales.



For example, if the given temperature Value is 25C then Celsius value is 25.0C, Fahrenheit value is 77.0F, and Kelvin value is 298.0K.


The possible denominations of currency notes are 100, 50, 20 and 10. The amount A to be withdrawn is given as input.

Write a program to break the amount into minimum number of bank notes.

Input


The first line of input is an integer A.

Output

The output should be a string representing number of 100, 50, 20, 10 notes possible.


Explanation

In the given example amount 370, it can be written as


370 = 3*(100) + 1*(50) + 1*(20) + 0*(10)


Then the output should beĀ 


100 Notes: 3

50 Notes: 1

20 Notes: 1

10 Notes: 0


Product of Numbers from M to N


This Program name is Product of Numbers from M to N. Write a Python program to Product of Numbers from M to N, it has two test cases


The below link contains Product of Numbers from M to N question, explanation and test cases


https://drive.google.com/file/d/1_esJ7Hmvq9C-MQ-Y5I2y-157JwVDHf_v/view?usp=sharing


We need exact output when the code was run

Sum of K powers


This Program name is Sum of K powers. Write a Python program to Sum of K powers, it has two test cases


The below link contains Sum of K powers question, explanation and test cases


https://drive.google.com/file/d/1Oq4KM7EiY-hpyfssYGYvIJ_qgPywpP55/view?usp=sharing


We need exact output when the code was run

Find Power of Number


This Program name is Find Power of Number. Write a Python program to Find Power of Number, it has two test cases


The below link contains Find Power of Number question, explanation and test cases


https://drive.google.com/file/d/1vDqKtEIKkaYkLdD_0hwA5rRycaPlBrvG/view?usp=sharing


We need exact output when the code was run

Solid Right Angled Triangle - 2


This Program name is Solid Right Angled Triangle - 2. Write a Python program to Solid Right Angled Triangle - 2, it has two test cases


The below link contains Solid Right Angled Triangle - 2 question, explanation and test cases


https://drive.google.com/file/d/1wZHjOSToDFKleclnKLf2md1FclvO7EWq/view?usp=sharing


We need exact output when the code was run

LATEST TUTORIALS
APPROVED BY CLIENTS