#Python If | Elif | Else issue

8 messages · Page 1 of 1 (latest)

toxic hill
#

If you check the #1120421483043356822 you can see the beginning of a project i am working on, my problem is now that I've made the option for 1, 2, or 3 I'm not sure how to navigate the construction of these condition checks, sure i could just use the same calculation setup for each but idk if i should

wraith nacelle
toxic hill
#

like lets say [1,2,3] are the inputs and each one has their own path of calculations
1 = the change solely so it will only gather those variables
2 = both paper and change will be the bulk of the code
3 = amd three is just paper aka whole values
my question is how do i prompt correctly and setup if statments for these three options

#

like itll disregard one path if they put 1 or so on and so fourth

#

woah wait i had an idea but idk if it'll work

#

instead of making the choices connected to individual sections of calculations can i prebuild a Function that runs those specific calculations and esstentilly pre-write the math sections so i can simply use

#

1 = Change_Cal()

wraith nacelle
#

Yeah you can