Write a function named count_case that takes a string as an argument and returns the count of upper case and lower case characters in the string (in that order). Any characters that are not letters should be ignored.

Answers

Answer 1

Answer:

def count_case(input): #create a function

 uppercase = 0 #declare variables

 lowercase = 0

 for x in input: #loop through user input looking at each letter

   if x.isupper(): #if letter is uppercase

     uppercase += 1 #increment the uppercase counter

   elif x.islower(): #otherwise if it is lowercase

     lowercase += 1 #increment the lowercase counter

 print(uppercase) #print uppercase count

 print(lowercase) #print lowercase count

string = input("enter string: ") #ask for user input

count_case(string) #run function


Related Questions

_____ drives are storage drives that contain both solid-state storage and hard disks in an attempt to gain the speed and power of ssds while still having the low cost and storage capacity of hard drives.

Answers

Answer:

Hybrid drives are storage drives that contain both solid-state storage and hard disks in an attempt to gain the speed and power of ssds while still having the low cost and storage capacity of hard drives.

What is a border line

Answers

Answer:

a border line is what separates to places from one another like if i were to go to mexico i would have to cross the border

Explanation:

Depends on context.

- Could be a line marking a border

- Barely acceptable; borderline

Example:

She was a borderline candidate.  

This means that she barely made it as a candidate role.

You have the following code:
----------------------------------------------------------------------------------------------
fruit_list = ["strawberries", "bananas", "apples", "grapes"]
total_cost = 0
for fruit in fruit_list:
if fruit in ["apples","bananas"]:
total_cost += 3
elif fruit == "cantaloupe":
total_cost += 5
elif fruit in ["raspberries","strawberries","grapes"]:
total_cost += 4
-------------------------------------------------------------------------------------------------

What will be the value of total_cost?

A.13
B.14
C.15
D.7

Answers

Answer:

7

Explanation:

We already have the functions that tells us how much to add. If you add all this, you will get 12. HOWEVER because cantaloupe is in the list, the computer does not count that. So if we add that again without 5(how much the cantaloupe costs), we get 7.

The first part of an ethernet frame is known as the:

Answers

the first part of the ethernet frame is called the preamble

A student wants to check six websites. Four of the websites are social and two are school-related. After checking just two sites, she has to leave for school. What is the approximate probability that she checked a social website first, then a school-related website?.

Answers

The approximate probability that she checked a social website first, then a school-related website is known to be 0.267

What is the check about?

In the above scenario, there are:

Total number of websites = 6

Number of school websites = 2

Number of social websites = 4

When she checks the social website first, the probability of checking a social website  is said to be 4/6

If one social website is checked, she is left with 3 social website and 2 school websites. So now the total number of websites will be 5.

The probability that the 2nd website that she checks is school related will be = 2/5

Therefor, the approximate probability that she checked a social website first, then a school-linked website is =

4/6 x 2/5

= 0.267

Therefore, the answer will be  0.267 probability level.

Learn more about websites from

https://brainly.com/question/10475324

#SPJ3

A database provides the capability of conducting searches or asking questions. A question or search for information in a database is called a ________.

Answers

A database provides the capability of conducting searches or asking questions. A question or search for information in a database is called a ___

✓ query

You have inserted a video on a slide and want the video to automatically start two seconds after the associated slide appears. How can you accomplish this?.

Answers

To be able to automatically start two seconds after the associated slide appears, it is better to use animation timings.

What is animation timing in PowerPoint?

The timings or the Duration option is known to be an option that informs the PowerPoint how long it will take for the slide to complete or for the text to show up on the screen.

Based on the above, To be able to automatically start two seconds after the associated slide appears, it is better to use animation timings.

Learn more about animation from

https://brainly.com/question/18260878


#SPJ1

Creating a map of your current knowledge is called __________. a. critical reading c. pre-questioning b. collaborative learning d. concept-mapping please select the best answer from the choices provided a b c d

Answers

Creating a map of your current knowledge is called  Concept-mapping. Check more about  Concept-mapping below.

What is concept mapping?

Concept maps are known to be visual depiction of information or human knowledge. They can be shown on a charts, graphic organizers, etc.

Therefore, Creating a map of your current knowledge is called  Concept-mapping as it involves bringing out one's intellectual.

Learn more about knowledge from

https://brainly.com/question/24621985

#SPJ4

How have cloud and 5g helped make extended reality (xr) technology more accessible to a wide audience?.

Answers

Cloud and 5G helped make extended reality (XR) technology more accessible to a wide audience by tracking as well as managing activity of users in extended reality using blockchain databases.

What is Cloud and 5G?

5G technology is bringing major improvements to the cloud computing. Most technology innovations can be more efficient when they are cloud-dependent. 5G makes communications more smoother and faster.

This activity is managed by the database management.

Thus, Cloud and 5G helped make extended reality (XR) technology more accessible to a wide audience by tracking as well as managing activity of users in extended reality using blockchain databases.

Learn more about Cloud and 5G.

https://brainly.com/question/11973901

#SPJ1

What is exactly meant by the term coding in context of computer science?

Answers

Answer:

writing instructions for the computer that the computer can interpret

Explanation:

For array data that should be treated as a queue, the _____ method is used, which is similar to the pop() method except that it removes the first array item and not the last.

Answers

Answer:

shift()

Explanation:

A website implements a sequential menu (as shown in the diagram) that indicates the relative page that the visitor is on in the website. Which planning phase covers this aspect?

A. Wireframe
B. Browsing functionality
C. Content
D. Page description diagrams

Answers

Answer:

Letter B. Browsing Functionality

Explanation: I just did this question

To avoid fatal errors, it is advised to apply the _____ statement locally only to functions that are created rather than globally as the first line of the script file.

Answers

Answer:

To avoid fatal errors, it is advised to apply the "use strict" statement locally only to functions that are created rather than globally as the first line of the script file.

At Universal Containers, the sales managers would like Opportunities that have NOT been updated in the past 30 days to automatically be flagged. How should a System Administrator implement this requirement

Answers

The System Administrator implement and Create a formula field to calculate the time since last update and display an image of a red flag if it meets the defined criteria.

What is a  Formula field?

This is known to be a read-only fields that often calculate a value through the use of other fields or a given  formula.

Note that The System Administrator implement his requirement and Create a formula field to calculate the time since last update and display an image of a red flag if it meets the defined criteria.

Learn more about System Administrator  from

https://brainly.com/question/27129590

#SPJ1

"Computer Science is no more about computers
than astronomy is about telescopes"
- Edsger W. Dijkstra

Answers

Answer:

si

Explanation:

Types in java are divided into two categories. the primitive types are boolean, byte, char, short, int, long, float and double. all other types are ________ types

Answers

types in java are divided into two categories. the primitive types are boolean, byte, char, short, not, long, float, and double. all other types are REFERENCE types

When an ages array is correctly initialized using the values {20, 30, 40, 50}, then the value of ages[4] is _______________________.

Answers

When an ages array is correctly initialized using the values {20, 30, 40, 50}, then the value of ages[4] is undefined.

This is about a software called GIMP

Answers

Answer:

The answer is Stroke

Explanation:

Stroke outlines objects on a layer

Answer:

The correct answer is Stroke.

Explanation:

Go to the Edit menu now and from here, click on the Stroke Selection option. A dialog box will open up where you need to select the Stroke Line option and then set up various options like solid line, line style, dash pattern, line width, etc. After setting up these options, press the Stroke option, and wooo u did it!

Hope this helps:) Goodluck!

Government entities may pressure upstream Internet service providers to _____. a. track and monitor the Internet activities of individuals b. accept defamation or copyright infringement claims c. immediately take down particular hosted material d. deregister domains because of their hosted content

Answers

Explanation:

The graph of y = √x is reflected in the y-axis, is horizontally stretched by a factor of 2, shifted 3 units up and 1 unit left. What is the equation of the transformed graph?

Original: y = √(x)

Reflected in the y-axis: y = √(-x)

Horizontally stretched by a factor of 2: y = √(-x/2)

Shifted 3 units up: y = 3 + √(-x/2)

And 1 unit left: y = 3 + √(-(x+1)/2)

A company will be able to obtain a quantity discount on component parts for its three products, X1, X2 and X3 if it produces beyond certain limits. To get the X1 discount it must produce more than 50 X1's. It must produce more than 60 X2's for the X2 discount and 70 X3's for the X3 discount. Which of the following pair of constraints enforces the quantity discount relationship on X3? a. X31 ? M3Y3 , X32 ? 50Y3 b. X31 ? M3Y3 , X31 ? 50 c. X32 ? (1/50)X31 , X31 ? 50 d. X32 ? M3Y3 , X31 ? 50Y3

Answers

The  pair of constraints enforces the quantity discount relationship on X3 is X32 ≤ M3Y3 and X31 ≥ 70Y3.

What is Relationship discount?

Relationship discounts especially on mortgages are known to be special loan terms that is said to be offered by financial institutions offer if a person have different types of accounts with them.

Note that The  pair of constraints enforces the quantity discount relationship on X3 is X32 ≤ M3Y3 and X31 ≥ 70Y3 as it best tell what it is about.

Learn more about  discount relationship from

https://brainly.com/question/10286547

#SPJ4

Mille gets a text from her friend asking if she wants to come over. It seems like a bit of a hassle to go to her friend's house, especially when they
could watch online videos together and talk over the phone. What is the BEST advice for Millie?
OA. Her friend will probably be relieved If she does not come over.
OB. They should just say whatever they want to say to each other over social media.
OC. It will be a more positive experience if she spends time with her friend in person.
OD. If they are doing the same activities virtually as they would if they were together, it does not make much difference.

Answers

Answer:

OC. It will be a more positive experience if she spends time with her friend in person.

Explanation:

You should always spend time with people in person rather than online whenever you get the chance.

You have purchased a new LED monitor for your computer. On the back of the monitor, you see the following port (pictured below). Which type of cable should you use to connect the monitor to your computer

Answers

There's no picture however the cable might be a HDMI since it's commonly used

Digital publishing software has increased the use of which of the following?
O paper
O fonts
O color
O photos

Answers

Answer:

~Senpi Boi here~

Explanation:

What the Digital publishing increased was the Photo option.

(Hope this helps!)

Today, the Digital publishing software has increased the use of photos.

What is a Digital publishing software?

This is a software tools that make it easy to publish text and graphic editions in a digital form on electronic devices such as computer, tablet, smartphone etc.

In current time, these software tools has increased the use of photos for publishing.

Therefore, the Option D is correct.

Read more about publishing software

brainly.com/question/26695020

#SPJ2

Every javafx main class __________. group of answer choices implements javafx.application.applicatio extends javafx.application.application overrides start(scene s) method overrides start() method

Answers

Two concepts central to JavaFX are a stage and a scene.

You work as the IT administrator for a growing corporate network. You are in the process of creating an iSCSI storage area network (SAN) on the CorpisCSI server. The server is currently connected to the network using an Ethernet cable. To increase the server's performance, yoru have decided to replace the existing Ethernet connection with a fiber optic connection. In this lab, your task is to complete the following: . Connect the CorpisCSI server to the switch using the appropriate fiber optic cable. . Examine the port types on the switch. Examine the server's fiber optic NIC. . When connecting the server, use the color coding on the end of the fiber optic cable to identify the Tx and Rx connection ends Connector A (red) Tx. - Connector B (black) is Rx. . Remove the server's previous Ethernet network connection and place the Ethernet cable on the Shelf. . Verify that the server is connected to the network through the fiber optic connection. C When connecting fiber optic cables, the transmit (T) port on one device is connected to the receive (Rx) port on the other device. The fiber cables in this lab have already had their Rx and Tx connectors switched as necessary. You can view component information in the Details window on the Specification tab

Answers

The steps in the above scenario are:

Connect to an iSCSI target:Then  Create a volume:

How do you Connect to an iSCSI target?

This can be done by:

Select CORPSERVER from Hyper-V Manager, Make sure to Maximize the window to view all virtual machines.Then Right-click CorpFiles16 and select Connect.Use the Server Manager on CorpFiles16 to select Tools > iSCSI Initiator.Via the Target field, enter the server name of the target server.Then click.Select Quick Connect and then Done and then OK.

Note that the steps in the above scenario are:

Connect to an iSCSI target:Then  Create a volume:

Learn more about IT admin from

https://brainly.com/question/26096799

#SPJ2

The ___ event is used to get things started and to set up vital initial information?

Answers

Answer:

Start-up

Explanation:

The start-up event is used to get things started and to set up vital initial information?

What is the difference between a general ai as opposed to a specialized ai?.

Answers

Explanation:

thanks don't forget to follow narin po salamat

what is the full meaning of I.C.T​

Answers

Answer:

information communications technology

Answer:

The infrastructure and components that enable modern computing is known as I.C.T (information and communications technology).

Although there is no single, universal definition of I.C.T, it is widely understood to refer to all devices, networking components, applications, and systems that when used together allow people and organizations (i.e., businesses, nonprofit organizations, governments, and criminal enterprises) to interact in the digital world.

Research the history of Internet in computers

Answers

Answer:

This allowed different kinds of computers on different networks to "talk" to each other. ARPANET and the Defense Data Network officially changed to the TCP/IP standard on January 1, 1983, hence the birth of the Internet. All networks could now be connected by a universal language.

The internet service that allows users to navigate among many pages is.

Answers

Answer:

The world wide web

Explanation:

The world wide web is a hypertext information system that links internet documents and allows users to navigate through the Web, by using a computer mouse to click on “links” that go to other web pages.

Other Questions
help!!!! please hurry! Please help ASAPThe internal measures of a cubiodal room are 12m x 8m x 4m. Find the total cost of whitewashing all four walls of a room. If the cost of whitewashing is 5 per m. what will be the cost of whitewashing if the ceiling of the room is also whitewashed. What does the phrase "and who are you that draws your veil across the stars?" likely mean, as it is used in line 18? who is this person who is talking about space exploration? who is this person who is talking over me when i am speaking? who is this person who is talking negatively about my positive attitude? who is this person who is talking negatively about the design of the american flag? Help-This is due today What was the purpose of tamburlaine the great Third parties are allowed in the US, but they have never influenced election outcomes.Please select the best answer from the choices providedTrue or false? a solution contains 2 moles of hydrochloric acid.the volume of the solution is 250 cm3what is its concentration in mol/dm What are the verb of preference? ________ occurs when sensory information is organized, interpreted, and consciously experienced. Group of answer choices perception sensory adaptation transduction sensation Many nations within the Middle East and Africa have consistently seen political and social upheaval in the decades after gainingindependence and/or establishing nationhood. What historical similarities are found between these two regions that have lead to similar struggles in modern times? Consider what these areas experienced not only under colonialism/imperialism, but also going back centuries to their origins. What are some struggles that they have always experienced? What occurs when solar radiation bounces off a surface?texturizationabsorptionreflectionenergization the quotient if b and 3 is greater than or equal to 19 To what extent did threats from other countries influence relationships betweennations? Max Points!!Below are the steps for writing a critical essay:Write the first draft.Find evidence.Revise draft.Know the text.Outline.Write final essay.Select the topic.Put the steps in the correct order. I need some help on this question please Find the value of B+4 when B=17 Question 9Which of the following describes why President Clinton used the U.S.military in the Balkans? Rita has a circular hot tub. the hot tub has a circumference of 25.12 feet. it is 3.5 feet deep. how much water can the hot tub hold? Which of the following equations defines a line that passes through the points begin ordered pair negative 2 comma 7 end ordered pair and begin ordered pair 6 comma negative 9 end ordered pair? The first rule is add 2 starting from 0. The second rule is add 6 starting from 2. What is the third ordered pair using the terms in each sequence? (6, 20) (2, 8) (8, 26) (4, 14)