rihaanaidris rihaanaidris
  • 29-04-2021
  • Computers and Technology
contestada

Write the program to convert the string “ SOFTware” into lower case ,”hardware “ string into upper case.
Combine the two strings and find the length of the combined string.

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 04-05-2021

Answer:

The program in Python is as follows:

str1 = " SOFTware".lower()

str2 = "hardware ".upper()

str3 = str1+str2

lent = len(str3)

print(lent)

Explanation:

(1) Convert " SOFTware" to lower

str1 = " SOFTware".lower()

(2) Convert "hardware " to upper

str2 = "hardware ".upper()

(3) Combine both strings

str3 = str1+str2

(4) Calculate the length of the new string

lent = len(str3)

(5) Print the calculated length

print(lent)

Answer Link

Otras preguntas

what is synergistic interaction
Explain how the "Tenth Day: Tenth Story" innovates upon the form of the allegorical tale. Your answer should be at least 150 words.
The shortest distance from a point to a straight line is
There's evidence that sudden infant death syndrome is related to a. narcolepsy. b. night terrors. c. insomnia. d. sleep apnea.
What is the answer to this math problem
which of the following best explains why soil conservation is important to human agriculture
In a(n) ____, local rulers governed but western powers were in actual control.
What term represents a type of nuclear reaction
Is 4y - 8 > 10 true?
which of these postclassical empires covered the largest geographic territory