0

two operations with print command

How to make print command get the following output a = 9 b = 3 c = 9 // 3 out put should be " The quotient of a, b is 3" i tried like this print (" The quotient of a, b is" (c) ) then this print (" The quotient of a, b is (c)" ) I did not get the result. Can anyone explain Thanks

28th Nov 2020, 3:23 AM
sivasankar
1 Resposta
+ 1
a = 9 b = 3 c = 9 // 3 print (" The quotient of a, b is", c) Don't make c string print (f" The quotient of a, b is {c}") using string formatting Thanks
28th Nov 2020, 3:43 AM
Sâñtôsh
Sâñtôsh - avatar