Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########## I had this:
- list1 = []
- list2 = []
- dictionary_1 = {}
- config1 = 1
- config2 = 0
- fake_userinput_list_1 = [...]
- fake_userinput_list_2 = [...]
- fake_userinput_config_1 = 0
- fake_userinput_config_2 = 1
- fake_userinput_config_3 = 1
- #definition of functions used my "main" code:
- def 1
- def 2
- etc
- #main code
- do this
- than that
- than use function 1 to that
- then do this using function 2
- etc
- etc
- print(dictionary_1)
- ################################################################################
- ########## Needed "main" to become a function so I could execute it from external .py script so I plan on doing this:
- def myFunction(fake_userinput_list_1, fake_userinput_list_2, fake_userinput_config_1, fake_userinput_config_2, fake_userinput_config_3):
- list1 = []
- list2 = []
- dictionary_1 = {}
- config1 = 1
- config2 = 0
- def 1
- def 2
- def 3
- etc
- do this
- than that
- than use function 1 to that
- then do this using function 2
- etc
- etc
- return dictionary_1
- ################################################################################
Add Comment
Please, Sign In to add comment