Saturday, October 7, 2023

how to limit number of decimal places in python | how to truncate decimal in python

In this video shorts, you will learn how to limit number of decimal places in python and will learn to write a python program how to truncate decimal in python. It is just a 1 minute #shorts of #python3 where you will learn the use of format specifier %f. When %.2f is used in print statement, you get the output limited to 2 decimal places. When %f is replaced by %d format specifier, the float value is truncated and you get only integer output. This video tutorial is in the form of #ytshorts created by #bintuharwani as a part of #pythonprogramming tutorial series for #pythonforbeginners and a complete playlist is provided of #pythontutorial in this #pythonfreecourse Link of the Shorts: https://www.youtube.com/shorts/Gfeno5RFGOc Detailed Video: #2 Python Tutorial for Beginners | Taking User input in Python https://www.youtube.com/watch?v=KZPjRLIMoQs

Thursday, October 5, 2023

float value in python || area of triangle program in python

In this video tutorial, you will learn to deal with float value in python program and for that we will learn to create area of triangle program in python. User will be asked to enter base and height. We will learn how float value is computed and how format specifier %f can be used to display float value to 2 decimal points. It is a 1 minute #shorts of #python for fast concepts #ytshorts created by #bintuharwani as a part of #programmingtutorial to make you #learnpython in this fastest #pythontutorial to learn #python3 with running python programs Detailed Video: #2 Python Tutorial for Beginners | Taking User input in Python https://www.youtube.com/watch?v=KZPjRLIMoQs You will learn: float value to 2 decimal points python python program for area of triangle float value in python example area of triangle in python float value precision in python area of triangle in python w3schools float value print in python area of triangle in python with base and height design a python program to calculate area of triangle and print the result learn python python tutorial python programming python free course w3schools python tutorial python oops python for beginners