Question: Write code using the in Operator that determines whether 'd' is in mystring. You can assign characters to the variable named mystring of your choice.
- Write code using the in Operator that determines whether 'd' is in mystring. You can assign characters to the variable named mystring of your choice.
- Assume the variable named big references a string that contains upper case characters. Write a statement that converts the string it references to lowercase characters and assigns the converted string to the variable named little.
- Write an if statement that displays Digit if the string referenced by the variable ch contains a numeric digit. Otherwise, it should display No digit.. You can assign the character values of your choice to the string variable named ch.
- Write a loop that asks the user Do you want to repeat the program or quit? (R/Q). The loop should repeat until the user has entered an R or Q (either uppercase or lowercase).
- Write a loop that counts the number of uppercase characters that appear in the string referenced by the variable named mystring. You can assign the character values of your choice to the string variable named mystring.
((CAN ANYONE HELP ME ANSWER THESE QUESTIONS?))((PYTHON))
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
