*Program A Day (Paddy 7)*
Prof. Jantarmantar designed a wonderful Robo named Jadugar.
Jadugar accepts an alphabet from us and echos the same as many times as the position of the alphabet. Let us see how he echos:
Master! Please provide me with Alphabet in the capital letter: A
Jadugar's Response: A
Master! Please provide me with Alphabet in the capital letter: C
Jadugar's Response: CCC
Master! Please provide me with Alphabet in the capital letter: H
Jadugar's Response: HHHHHHHH
Hint:
Get ASCII value of the character using the function ord()
Find the position of the alphabet based on its ASCII value.
Alphabet ASCII Value Position
A 65 1
H 72 8
Answers
Answered by
0
Answer:
9 lack
Explanation:
Similar questions
English,
17 days ago
Social Sciences,
17 days ago
Science,
1 month ago
Social Sciences,
9 months ago
Economy,
9 months ago
Math,
9 months ago