Write a python code that will prompt: a) The second character of the string name (using...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a python code that will prompt: a) The second character of the string name (using positive index) and the seventh character of string name (using negative index) b) Use string slices to prompt from the first to the 10th character. 2. write a python code that will request a user to enter an integer from the computer keyboard and save that integer in a variable. After it, use assignment operators divide the integer with 7 and return the quotient and prompt result as: The quotient of number with 7 is 3. write a python code that will ask the user to enter two animals, then the program will concatenated both animals and save the length of the concatenated word. 4. Given: Name = "Queensborough community college" write a python code that will replace 'mm' with '%' Write a python code that will prompt: a) The second character of the string name (using positive index) and the seventh character of string name (using negative index) b) Use string slices to prompt from the first to the 10th character. 2. write a python code that will request a user to enter an integer from the computer keyboard and save that integer in a variable. After it, use assignment operators divide the integer with 7 and return the quotient and prompt result as: The quotient of number with 7 is 3. write a python code that will ask the user to enter two animals, then the program will concatenated both animals and save the length of the concatenated word. 4. Given: Name = "Queensborough community college" write a python code that will replace 'mm' with '%'
Expert Answer:
Answer rating: 100% (QA)
Here are the Python code snippets for each of your tasks 1 Prompt for Specific Characters and Slicin... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Differentiate between depository and non - depository institutions. Give examples for each, and state their sources and uses of funds.
-
Using 5S, organize with photos, labels for the laundry supplies, refrigerator and utensil area. Put your photos and explanation before and after in the delivery of the project, do not forget to make...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The lifespans of gorillas in a particular zoo are normally distributed. The average gorilla lives 20.8 years; the standard deviation is 3.1 years. Use the empirical rule (68 - 95 - 99.7%) to estimate...
-
Donna owns 800 shares of common stock in Macaw Corporation (adjusted basis of $40,000). She receives a 5% stock dividend when the stock is selling for $60 per share. a. How much gross income must...
-
How does historical air cargo growth compare with that of passenger air travel?
-
Gathii is creating a tile backsplash for his kitchen. He wants to use square tiles to cover a \(330 \mathrm{~cm} \times 12 \mathrm{~cm}\) area. What is the largest size square tile he can use to...
-
Geoff and Sandy Harland own and operate Wayward Kennel and Pet Supply. Their motto is, "If your pet is not becoming to you, he should be coming to us." The Harlands maintain a sales tax payable...
-
Choose the letter of the correct answer. Thank you!! 1. Bond issuance costs, including the printing costs and legal fees associated with the issuance, should be? a. Accumulated in a deferred charge...
-
The 3-kg block A is released from rest in the 60 position shown and subsequently strikes the 1-kg cart B. If the coefficient of restitution for the collision is e = 0.7, determine the maximum...
-
placed on opposite ends of the beam, where W_(1). Find x such that the system is in equilibrium. Two children weighing 42 pounds and 63 pounds are going to play on a seesaw that is 20 feet long. 0...
-
Add three vectors A, B, and C, where R=A+B+C. Calculate the X-component of the resulant. A=26.9 m/s at 116.5 degrees from the positive X-axis B=35.6 m/s at 318.9 degrees from the positive X-axis...
-
Shibs Evans, an often confused (as in, he regularly says to his superiors, "I'm not sure what my flag is") 36-year-old father of two young daughters, Natalia and Teana (one he nicknamed "Spark Plug"...
-
Charles was a jewellery designer and placed the following advertisement in West Noon Post on 1 November 2021. For Sale Handmade "88-shaped" necklace on display HK$10,000 Come to my shop and buy it...
-
In 1978, Walter Corley was diagnosed with neurofibromatosis, a genetic disorder that results in tumors of the nerves. In 1988, Mr. Corley developed back pain and sought treatment at E.A Conway, a...
-
Wira Steel Industries had just announced the resignation of its CEO following another year of record losses. Just yesterday you had sold ( shorted ) the stocks at RM 6 . You think the stock price is...
-
Dye Industries currently uses no debt, but its new CFO is considering changing the capital structure to 6 9 . 5 % debt ( wd ) by issuing bonds and using the proceeds to repurchase and retire some...
-
Hotel Majestic is interested in estimating fixed and variable costs so that the company can make more accurate projections of costs and profit. The hotel is in a resort area that is particularly busy...
-
What key aspect of both the binary search and the merge sort accounts for the logarithmic portion of their respective Big Os?
-
How does polymorphism enable you to program in the general rather than in the specific? Discuss the key advantages of programming in the general.
-
Compare and contrast abstract classes and interfaces. Why would you use an abstract class? Why would you use an interface?
-
(a) Why do some businesses keep a petty cash book as well as a cash book? (b) Kathryn Rochford keeps her petty cash book on the imprest system, the imprest being 25. For the month of April 19X9 her...
-
On 1 March 19X6, C Black, Curzon Road, Stockport, sold the following goods on credit to J Booth, 89 Andrew Lane, Stockport SK1 1AA, Order No 1697: (a) Prepare the sales invoice to be sent to J Booth....
-
On 1 May 19X7, D Wilson Ltd, 1 Hawk Green Road, Stockport, sold the following goods on credit to G Christie & Son, The Golf Shop, Hole-in-One Lane, Marple, Cheshire: Order No A/496 3 sets Boy Michael...
Study smarter with the SolutionInn App