Convert the input text to upper case


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. while True:
  2. reply = raw_input('Enter text, [tpye "stop" to quit]: ')
  3. if reply == 'stop': break
  4. print reply.upper()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.