in python please 1) String methods Ask the user for a name (test with George Washington). Print the name in all uppercase letters. Print the length of the name. Print the 4th character of the name (r). Create a variable called name2. Assign to name2 the name with all "o" characters replaced with "x"s. Print name2. Print the original name. 2) Counting and Finding Assign the text "Believe you can and you're halfway there." to a variable called quote (this is a quote from Theodore Roosevelt). Count how many "a" characters there are, print the result. Print the index of all the "a" characters. Hint: Except for the first find, set the start location for the next find as the previous location found index + 1. The second argument in the find method is the index where the find starts looking. A fuller explanation of the find method is given in string-methods   Example output: Enter the name: George Washington GEORGE WASHINGTON 17 r Gexrge Washingtxn George Washington Count = 4 a found at 13 a found at 16 a found at 28 a found at 32 Add the following at the end of the script to show your results: ''' Execution results: paste execution results here '''

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

in python please

1) String methods

  1. Ask the user for a name (test with George Washington).
  2. Print the name in all uppercase letters.
  3. Print the length of the name.
  4. Print the 4th character of the name (r).
  5. Create a variable called name2. Assign to name2 the name with all "o" characters replaced with "x"s.
  6. Print name2.
  7. Print the original name.

2) Counting and Finding

  1. Assign the text "Believe you can and you're halfway there." to a variable called quote (this is a quote from Theodore Roosevelt).
  2. Count how many "a" characters there are, print the result.
  3. Print the index of all the "a" characters.
    Hint: Except for the first find, set the start location for the next find as the previous location found index + 1. The second argument in the find method is the index where the find starts looking.
    A fuller explanation of the find method is given in string-methods

 

Example output:

Enter the name: George Washington GEORGE WASHINGTON 17 r Gexrge Washingtxn George Washington Count = 4 a found at 13 a found at 16 a found at 28 a found at 32

Add the following at the end of the script to show your results:

'''
Execution results:
paste execution results here
'''

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Introduction to Coding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY