0

Why is this app not executing python codes

Python

10th Nov 2023, 4:20 PM
ajah chidera
ajah chidera - avatar
6 Answers
+ 3
There are many errors in your code. You can do this: a = int(input()) b = int(input()) print(a+b) Same for multiplication. printf is for formatting your output: print(f'result = {a+b}') or multiline: print(f'''result of addition: {a+b} result of multiplication: {a*b}''')
10th Nov 2023, 5:17 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
you are not taking input. for input, use the input() function. functions have (), not {}. and you are using strings just everywhere instead of numbers or variables.
10th Nov 2023, 4:32 PM
Lisa
Lisa - avatar
+ 1
add to what??? ask your questions here.
10th Nov 2023, 5:04 PM
Lisa
Lisa - avatar
0
Run this
10th Nov 2023, 4:25 PM
ajah chidera
ajah chidera - avatar
0
n1 =("a+b") n2 =("enter any number for addition") n3 =("a*b") n4 =("enter any number for multiplication") check ={"n2 & n4 "} answer = ("check") print {f"check"}
10th Nov 2023, 4:25 PM
ajah chidera
ajah chidera - avatar
0
Is not working
10th Nov 2023, 4:25 PM
ajah chidera
ajah chidera - avatar