8οΈβ£ Mathematical operations III.
Ask the user to enter a number over 100 and then enter a number under 10 and tell them how many times the smaller number goes into the larger number in a user-friendly format.
Ask the user to enter a number over 100 and then enter a number under 10 and tell them how many times the smaller number goes into the larger number in a user-friendly format.
9οΈβ£ Mathematical operations IV.
Ask the user to enter two positive numbers and save them in two variables a and b. Write a code to print four lines where:
1. The first line contains the sum of the two numbers with the text βThe sum of the two numbers is - β.
2. The second line contains the difference of the two numbers (first - second) with the text βThe difference of the two numbers is - β.
3. The third line contains the product of the two numbers with the text β The product of the two numbers is - β.
4. The fourth line contains the quotient of the two numbers (greater number divided by the smaller one) with the text β The result of the division of the two numbers is - β.
Ask the user to enter two positive numbers and save them in two variables a and b. Write a code to print four lines where:
1. The first line contains the sum of the two numbers with the text βThe sum of the two numbers is - β.
2. The second line contains the difference of the two numbers (first - second) with the text βThe difference of the two numbers is - β.
3. The third line contains the product of the two numbers with the text β The product of the two numbers is - β.
4. The fourth line contains the quotient of the two numbers (greater number divided by the smaller one) with the text β The result of the division of the two numbers is - β.
1οΈβ£0οΈβ£ Mathematical operations V.
Ask the user to enter two positive numbers and save them in two variables a and b.
Write a code to print two lines. The first line should contain the result of integer division. The second line should contain the result of float division. No rounding or formatting is necessary.
Ask the user to enter two positive numbers and save them in two variables a and b.
Write a code to print two lines. The first line should contain the result of integer division. The second line should contain the result of float division. No rounding or formatting is necessary.
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
π₯ Now lets see the solutions. π₯
1 Welcome.py
92 B
Solution of the first question.π
2 Adding_two_numbers.py
127 B
Solution to the second question. π
3 Mathematical_operations_1.py
181 B
Solution to the third question. π
4 Resturant_1.py
400 B
Solution to the fourth question. π
5 Resturant_2.py
203 B
Solution to the fifth question. π
6 Mathematical_operations_2.py
230 B
Solution to the sixth question. π
8 Mathematical_operations_3.py
233 B
Solution to the eighth question. π
9 Mathematical_operations_4.py
421 B
Solution to the ninth question. π
10 Mathematical_operations_5.py
247 B
Solution to the tenth question. π
πππππππππππππππ
Share This to your coder friends so that they can get the benefits too.
Want to get more? JOIN OUR CHANNEL BY CLICKING THE JOIN BUTTON BELOW.
πππππππππππππππ
Share This to your coder friends so that they can get the benefits too.
Want to get more? JOIN OUR CHANNEL BY CLICKING THE JOIN BUTTON BELOW.
πππππππππππππππ
This media is not supported in your browser
VIEW IN TELEGRAM
π₯ Some more books on Python π₯