Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Core Ios Developer S Cookbook Core Recipes For Programmers

Authors: Erica Sadun ,Rich Wardwell

5th Edition

0321948106, 978-0321948106

More Books

Students also viewed these Programming questions

Question

Discuss the three main approaches to recognizing expenses.

Answered: 1 week ago