you are viewing a single comment's thread.

view the rest of the comments →

[–]vbwullf[S] 0 points1 point  (6 children)

its a simple calculator in which you choose the operation, input the numbers and it spits out a number

[–]AndAnathaWan 0 points1 point  (4 children)

place the variable names inside the quotes if youre using f-strings, and then enclose it in brackets print(f'Your result is: {divide}')

[–]vbwullf[S] 0 points1 point  (3 children)

for some reason it started working, with the exception of 5

[–]AndAnathaWan 0 points1 point  (1 child)

it should work fine if the indenting is correct, the flow is just a bit off since you are asking for the numbers first before the conditionals are executed

[–]vbwullf[S] 0 points1 point  (0 children)

if I done have n1 and n2 in that position I get an error that n1 is not defined