Time left 1: Complete the program below which counts the number of capital letters in word? count = 0 for char in word: count = count + if word.isupper(): if char >= "A" and char <= "z" : if char.isupper() : if char.islower(): if char.upper():

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 11PE: The program in the Programming Example: Fibonacci Number does not check whether the first number...
icon
Related questions
Question
Time left 1:03:39
Question
7
Complete the program below which counts the number of capital letters in word?
count
Not yet
for char in word:
answered
Marked out of
3.00
count
count + 1
P Flag
question
if word.isupper():
if char >= "A" and char <= "z":
if char.isupper() :
if char.islower():
if char.upper():
PREVIOUS PAGE
NEXT PAGE
Transcribed Image Text:Time left 1:03:39 Question 7 Complete the program below which counts the number of capital letters in word? count Not yet for char in word: answered Marked out of 3.00 count count + 1 P Flag question if word.isupper(): if char >= "A" and char <= "z": if char.isupper() : if char.islower(): if char.upper(): PREVIOUS PAGE NEXT PAGE
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning