Use Python Need Execution Output First Script Working Strings Script Contains Four Parts S Q37168635

Use Python and need execution output

First Script – Working with Strings

This script contains four parts.

String Type Tests

  1. Ask the user for a string (test with “ABC123”).
  2. Use method isupper to test the string, print the result.
  3. Use method isdigit to test the string, print the result.
  4. Use method isalpha to test the string, print the result.

Escape Characters within a string

Use newline escape characters within a line of haiku

  1. 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.
  2. Print, so that the output
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.