grandfathermagic

switch places

Apr 14th, 2020
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. string = input("Prompt: Enter a two digit number")
  2. if len(string) == 2:
  3.     print("The length is 2 digits long")
  4.     print(type(string), "This it a type statement ")
  5.     print(string, "This it a print statement ")
  6.     print(string[-1:1], "This it a this is string[-1,1] statement ")
  7. else:
  8.     print("apparently size does matter")
  9.     status = False
Advertisement
Add Comment
Please, Sign In to add comment