🔒 Closed Python coding help po

Status
Not open for further replies.
userIn = int(input('A or B'))
if userIn.lower() == 'a':
do this // quad eq
print('inp 2 num')
num1 = int(input())
num2 = int(input())
operator = input()
if operator.lower() == 'add':
add this
res = 1 + 2
if operator.lower() == 'mul':
mul this
res = 1 * 2
if operator.lower() == 'div':
div this
res = 1 / 2
if operator.lower() == 'sub':
sub this
res = 1 - 2

print(res)

elif userIn.lower() == 'b'
do this // simple eq
else:
do this.// option doesn't exists

nakakatamad. gawin mo nalang
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 391
    Views
  • 4
    Participants
Last reply from:
Wu Zi Mu

Trending Topics

Online now

Members online
819
Guests online
2,865
Total visitors
3,684

Forum statistics

Threads
2,331,942
Posts
29,261,322
Members
1,147,908
Latest member
nanikore09
Back
Top