Question: Write one program that includes all of these little programs in it. Print a dashed line ---------------- between each activity. A . Make three variables

Write one program that includes all of these little programs in it. Print a dashed line "----------------" between each activity.

A. Make three variables and store these three strings in them (use meaningful variable names, not just x y z): A Red Fox chased a Blue mouse across a Green meadow.

Print out all three variables

B.Make a fourth variable and concatenate these three variables into it. Make sure to add spaces as needed to keep the words separate. Print out the fourth variable with the full string in it. (the rest of Exercise 1 will use this variable with the full string in it)

C.Print out the full string in all lower case characters using the .lower() method. Then print the string again to show that the original was not changed.

D.Print out the full string in all UPPER case characters using the .upper() method. Then print the string again to show that the original was not changed.

E.Print out the character at index 19

F. Print out the word Blue using this string and the indexes string[ i : j ] {you will have to figure out the values for i and j}

G.Print out the total number of characters in the string.

H.Test the string to see if it is an integer and print out True or False (it should be False).

I.Make a new variable that contains a string that can be converted to an integer. Test it and have the test method print out True.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!