hello. i am a total noob. new to coding, new to python. i write code in the jedit text editor i get indentation errors on some of my code but i can’t figure it out. the indentations in jedit are correct. now here’s the kicker. sometimes the code works and sometimes it doesn’t. this is driving me crazy!!! the program is a financial calculator that uses the basic formula interest = principle * rate * time. i write code in the main function like so and it works:
#main definition
def main():
print('Welcome to the financial calculator')
#function calls
#call to main
main()
testing this code i get the expected output. as soon as i add a second function
#enter_data definition
def enter_data():```
i get an indentation error on the main function definition, yet as you can see the indentation is correct at 4 spaces. i have it setup automatically in jedit. sometimes i get the error message adding if blocks to main() or enter_data(). please help before i loose it.