From 8fb719f58f91d1f1f187a1db974682fb3736ee05 Mon Sep 17 00:00:00 2001 From: Sudipto Mallick Date: Sat, 13 Jan 2024 09:28:10 +0530 Subject: Changes to project structure of Python assignments As was directed to remove assignments. --- python/code/03_flt_ops.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 python/code/03_flt_ops.py (limited to 'python/code/03_flt_ops.py') diff --git a/python/code/03_flt_ops.py b/python/code/03_flt_ops.py new file mode 100644 index 0000000..e3a3cd0 --- /dev/null +++ b/python/code/03_flt_ops.py @@ -0,0 +1,4 @@ +a = float(input('Enter first number: ')) +b = float(input('Enter second number: ')) +print('Concatenation of integer parts:', ''.join(str(int(i)) for i in (a, b))) +print('Sum rounded to 2 decimal places:', round(a + b, 2)) -- cgit 1.4.1-2-gfad0