@@ -153,23 +153,47 @@ def openvideo():
153153 print ("You have completed all the workouts for this set!" )
154154 print ("Run the `end` command to finish the workout. \n " )
155155 elif select == "quads" :
156- print ("You have completed: " + str ((int (activity_num / len (quads_count )* 100 ))) + "%" )
157- print ("Please complete 2 Sets of " + str (quads_count [activity_num ]) + " Reps of " + str (quads [activity_num ]) + "\n " )
156+ if activity_num < 6 :
157+ print ("You have completed: " + str ((int (activity_num / len (quads_count )* 100 ))) + "%" )
158+ print ("Please complete 2 Sets of " + str (quads_count [activity_num ]) + " Reps of " + str (quads [activity_num ]) + "\n " )
159+ else :
160+ print ("You have completed all the workouts for this set!" )
161+ print ("Run the `end` command to finish the workout. \n " )
158162 elif select == "glutes" :
159- print ("You have completed: " + str ((int (activity_num / len (glutes_count )* 100 ))) + "%" )
160- print ("Please complete 2 Sets of " + str (glutes_count [activity_num ]) + " Reps of " + str (glutes [activity_num ]) + "\n " )
163+ if activity_num < 6 :
164+ print ("You have completed: " + str ((int (activity_num / len (glutes_count )* 100 ))) + "%" )
165+ print ("Please complete 2 Sets of " + str (glutes_count [activity_num ]) + " Reps of " + str (glutes [activity_num ]) + "\n " )
166+ else :
167+ print ("You have completed all the workouts for this set!" )
168+ print ("Run the `end` command to finish the workout. \n " )
161169 elif select == "triceps" :
162- print ("You have completed: " + str ((int (activity_num / len (triceps_count )* 100 ))) + "%" )
163- print ("Please complete 2 Sets of " + str (triceps_count [activity_num ]) + " Reps of " + str (triceps [activity_num ]) + "\n " )
170+ if activity_num < 6 :
171+ print ("You have completed: " + str ((int (activity_num / len (triceps_count )* 100 ))) + "%" )
172+ print ("Please complete 2 Sets of " + str (triceps_count [activity_num ]) + " Reps of " + str (triceps [activity_num ]) + "\n " )
173+ else :
174+ print ("You have completed all the workouts for this set!" )
175+ print ("Run the `end` command to finish the workout. \n " )
164176 elif select == "biceps" :
165- print ("You have completed: " + str ((int (activity_num / len (biceps_count )* 100 ))) + "%" )
166- print ("Please complete 2 Sets of " + str (biceps_count [activity_num ]) + " Reps of " + str (biceps [activity_num ]) + "\n " )
177+ if activity_num < 5 :
178+ print ("You have completed: " + str ((int (activity_num / len (biceps_count )* 100 ))) + "%" )
179+ print ("Please complete 2 Sets of " + str (biceps_count [activity_num ]) + " Reps of " + str (biceps [activity_num ]) + "\n " )
180+ else :
181+ print ("You have completed all the workouts for this set!" )
182+ print ("Run the `end` command to finish the workout. \n " )
167183 elif select == "back" :
168- print ("You have completed: " + str ((int (activity_num / len (back_count )* 100 ))) + "%" )
169- print ("Please complete 2 Sets of " + str (back_count [activity_num ]) + " Reps of " + str (back [activity_num ]) + "\n " )
184+ if activity_num < 5 :
185+ print ("You have completed: " + str ((int (activity_num / len (back_count )* 100 ))) + "%" )
186+ print ("Please complete 2 Sets of " + str (back_count [activity_num ]) + " Reps of " + str (back [activity_num ]) + "\n " )
187+ else :
188+ print ("You have completed all the workouts for this set!" )
189+ print ("Run the `end` command to finish the workout. \n " )
170190 elif select == "chest" :
171- print ("You have completed: " + str ((int (activity_num / len (chest_count )* 100 ))) + "%" )
172- print ("Please complete 2 Sets of " + str (chest_count [activity_num ]) + " Reps of " + str (chest [activity_num ]) + "\n " )
191+ if activity_num < 6 :
192+ print ("You have completed: " + str ((int (activity_num / len (chest_count )* 100 ))) + "%" )
193+ print ("Please complete 2 Sets of " + str (chest_count [activity_num ]) + " Reps of " + str (chest [activity_num ]) + "\n " )
194+ else :
195+ print ("You have completed all the workouts for this set!" )
196+ print ("Run the `end` command to finish the workout. \n " )
173197 activity_num = activity_num + 1
174198 run_activity = True
175199 elif activity .lower () == "quit" :
0 commit comments