My problem is quite easy i think...
I need to go through an excel list and just want to print out certain fields (to begin with just the first 10 rows (so low_run = 0, high_run=10, and run=10 too).
Now i wanna get the next 10 so i need:
def get_input(high_run, low_run, run):
pressed_key = input('')
if pressed_key == "n": # Next Page
set_high_run_np(high_run, run)
set_low_run_np(low_run, run)
def set_high_run_np(high_run, run):
if high_run != len(ldata):
high_run = high_run + run
return high_run
def set_low_run_np(low_run, run):
if low_run != len(ldata) - run:
low_run = low_run + run
return low_run
The functions do work and would put out low_run = 10 and high_run = 20. It just won't return those numbers so they can be used... any idea why?
Thanks in advance and sorry for any grammar mistakes. No native speaker
Cya!