Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. you may take itemA
- 2. for every 3 models, you may exchange itemB with itemC
- 3. each model may take 2 of itemD
- 4. each model may take one of either itemE, itemF or itemG
- for index, option in enumerate(self.options):
- output = "{}.".format(index+1)
- if '-' in option:
- sub_option, no_models = option.split('-')
- no_models = int(no_models)
- print(sub_option)
- print(no_models)
- output += "For every {} models ".format(no_models)
- if '/' in sub_option:
- temp_str, temp_options, points_list = exchange_option(sub_option)
- else:
- temp_str, temp_options, points_list = standard_option(sub_option)
- index_points.append(points_list)
- temp_options.append(no_models)
- index_options.append(temp_options)
- else:
- if '/' in option:
- temp_str, temp_options, points_list = exchange_option(option)
- else:
- temp_str, temp_options, points_list = standard_option(option)
- index_points.append(points_list)
- index_options.append(temp_options)
- output += temp_str
Add Comment
Please, Sign In to add comment