Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

11. Try to see what results you get looking for character:%). First with find method and then with index0 method. In [1: str The best

image text in transcribed
image text in transcribed
11. Try to see what results you get looking for character:%). First with find method and then with index0 method. In [1: str "The best revenge is massive success." # Type your code here. ans_1= print(ans_1) 12. Which character occur more often in the string?'a" or "o"? Print both counts inside the print function. In (3): str="People often say that motivation doesn't last. Well, neither does bathing. That's why we recommend it daily." # Type your code here. ans_1= ans_2= print("count of a is: ", ans_1, "count of o is: ", ans_2) count of a is: 7 count of ois: 7 with the print function 13. Print the types of two given variables with the print function. In (): V_1="1" V_2=1 # Type your code on line 4: ans_1= ans_2= print(ans_1) print(ans_2) 14. What is the length of the given string? In [ ]: str="1.975.000" # Type your code here: ans_1= print(ans_1)

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

Introduction To Chemical Engineering Tools For Today And Tomorrow

Authors: Kenneth A. Solen, John N. Harb

5th Edition

0470885726, 978-0470885727

More Books

Students also viewed these Chemical Engineering questions