r/pythonhelp • u/[deleted] • Dec 17 '21
Newbie Code Question
Hi, im a Crossfitter and always want to workout the halfway point of some workouts, so im trying to make something that does this for me as practice for python, which im very new to. the code works but it only prints halfway_round as the intial value of "undefined" and doesnt redefine it with the if statement. Why is this? As said, im very very new to coding so please dont trash this too much, im just trying to learn!
##Rep Scheme Halfway Calculatorreps_a = []reps_b = []total_a = 0total_ - Pastebin.com
3
Upvotes
1
u/carcigenicate Dec 17 '21
Double check the values of the
r*variables, andhalfway(put aprintin that prints the values, or use a debugger).If
halfway_roundis never reassigned, that means none of thehalfway <= r*checks are true. Look at the data to figure out why that is.