Guest User

Untitled

a guest
Jul 6th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.05 KB | None | 0 0
  1. ########## I had this:
  2. list1 = []
  3. list2 = []
  4. dictionary_1 = {}
  5. config1 = 1
  6. config2 = 0
  7.  
  8. fake_userinput_list_1 = [...]
  9. fake_userinput_list_2 = [...]
  10. fake_userinput_config_1 = 0
  11. fake_userinput_config_2 = 1
  12. fake_userinput_config_3 = 1
  13.  
  14. #definition of functions used my "main" code:
  15. def 1
  16. def 2
  17. etc
  18.  
  19. #main code
  20. do this
  21. than that
  22. than use function 1 to that
  23. then do this using function 2
  24. etc
  25. etc
  26. print(dictionary_1)
  27. ################################################################################
  28.  
  29.  
  30.  
  31. ########## Needed "main" to become a function so I could execute it from external .py script so I plan on doing this:
  32. def myFunction(fake_userinput_list_1, fake_userinput_list_2, fake_userinput_config_1, fake_userinput_config_2, fake_userinput_config_3):
  33.  
  34. list1 = []
  35. list2 = []
  36. dictionary_1 = {}
  37. config1 = 1
  38. config2 = 0
  39.  
  40. def 1
  41. def 2
  42. def 3
  43. etc
  44.  
  45. do this
  46. than that
  47. than use function 1 to that
  48. then do this using function 2
  49. etc
  50. etc
  51. return dictionary_1
  52. ################################################################################
Add Comment
Please, Sign In to add comment