Use Python and need execution output
First Script – Working with Strings
This script contains four parts.
String Type Tests
- Ask the user for a string (test with “ABC123”).
- Use method isupper to test the string, print the result.
- Use method isdigit to test the string, print the result.
- Use method isalpha to test the string, print the result.
Escape Characters within a string
Use newline escape characters within a line of haiku
- Assign the text “Type, type, type away. Compile. Run. Hip hiphooray! No error today!” to a single variable (be sure to addnewline escape characters). This should be done in a single line ofcode.
- Print, so that the output
OROR