Posted By

kibrisli7 on 04/19/16


Tagged


Versions (?)

Guess the word


 / Published in: Python
 

Starter for computing students or a flowchart lesson

  1. def guess(secret):
  2. str1 = ' si'
  3. str2 = 'Thomas Muller'
  4. str3 = str1[0]
  5. str4 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6. str5 = str4.lower()
  7. str6 = secret
  8. reverse_str1 = str1[::-1]
  9. print(str2[7:11] + str5[0] + " " + reverse_str1 + str6 +" " + str4[6])
  10.  
  11. guess('a')

Report this snippet  

You need to login to post a comment.