🔒 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
  • 379
    Views
  • 4
    Participants
Last reply from:
Wu Zi Mu

Trending Topics

Online now

Members online
1,179
Guests online
1,968
Total visitors
3,147

Forum statistics

Threads
2,293,845
Posts
29,087,038
Members
1,207,977
Latest member
vladss
Back
Top