Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. def writeTextToFile(parametr):
  2.     with open('soubor.log', mode='w', encoding='utf-8') as file:
  3.         file.write(zreteny)
  4.     zreteny = STATICKY_TEXT + str(parametr)
  5.     print(zreteny)
  6.     return
  7.  
  8. STATICKY_TEXT = "This is my static text which must be added to file. It is very long text and I do not know what they want to do with this terrible text."
  9. parametr = input("Zadej parametr: ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement