Computational Physics, Python, Math, Physics.
flag left_bound_cond = 2 #Boundary cond 1 : Dirichlet, 2 : Neumann, 3 Mur right_bound_cond = 3 #Boundary cond 1 : Dirichlet, 2 : Neumann, 3 Mur if left_bound_cond not in [1,2,3]: loop_exec = 0 print("Please choose a correct left boundary condition") if right_bound_cond not in [1,2,3]: loop_exec = 0