Question: Use python code to do the question, please. Thank you so much. Question: 1. write one for loop to print out all odd numbers between

Use python code to do the question, please. Thank you so much.

Question:

1. write one for loop to print out all odd numbers between 1 to 50 (in one line), at the end of the loop, print out (on next line) Done! (note: one for statement only, no if statement should be used.)

2. get a string/sentence (may enter or assign), then write a for loop to count how many e characters are in the sentence. You may use the if statement in addition to for loop. For example, if a user enters hello friends, your output should be something like: 2 e found in the sentence. Provide at least three test runs, one is an empty string, one is a non-empty string without e, one is a non-empty string with more than one es.

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 Databases Questions!