+ 1
Plz tell how to solve the code below...
Give step by step guide before sharing code..plz👇 https://code.sololearn.com/cQamk4EZr4JB/?ref=app
5 Respuestas
+ 2
What's your exact problem here, all are just arithmetic manipulations only...
+ 2
-- is minus negative number, so you can see it as adding the number,
so it is just 3.625 + 3.625,
so a is 7.25
+ 1
What's you exact problem here, all are just arithmetic manipulations only...
The problem I've mention in the code now....ok
+ 1
#just run this code and see output...
a= 3+5/8--3.625
print(3, '+ ',(5/8),' - ','(',-3.625 ,' ) = ',a,'\n\n')
b= int(3+5/8)--3
print(3, ' + int ( ',5/8, ' ) - ', -3 )
print(3, ' + ' ,int (5/8), ' - ', -3 )
print(int(3+5/8), ' - ', -3, ' = ', b,'\n\n')
c= 3+ float (5/8)--3.625
print(3, ' + ', 5/8, ' - ', -3, ' = ', c,'\n\n')
d= 3+ float (5)/8--3.625
print(3, ' + ', 5/8, ' - ', -3, ' = ', d, '\n\n')
e= 3+5.0/8-----3.625
print(3 , '+ ', 5.0/8, ' -----', 3.625, ' = ', e)
print(3 , '+ ', 5.0/8, ' ', -----3.625, ' = ', e,'\n\n')
f= int(3+5/8.0)---3
print('int( ',3, ' + ', 5/8.0, ' )---', 3)
print('int(',3 + 5/8.0, ')', ---3)
print(int(3+5/8.0) ,' - ', 3, ' = ', f,'\n\n')
print(a,b,c,d,e,f)
"""riya charles
#run this code, and see
- (*) - = + so there - - = +
+ * - = - => +- = -
- * + = - => - + = -
+ * + = + => ++ = + only..
If you comparing with other language short hand language --/ ++, then python don't have those..
So there 3.625 - -3.625 = 7.5
----- = -
-- = +
"""
+ 1
Thank u all for your help I'll try it....and solve it then.👍