Best Laptop

Browsed by
Tag: python programming

Python Tutorial 6 – Use of Input() function

Python Tutorial 6 – Use of Input() function

Today we will study about the use of Python input function – interacting with computer. This function will enable you to get some data from computer. In a way, print function sends data to the console and input function gets the data from console. The data received via input function can be used in the program for further calculations. The data received via input function always carry string data type. To treat the data as integer or float, we need…

Read More Read More

Python Tutorial 5 – Python Operators

Python Tutorial 5 – Python Operators

Let’s begin our another session use of Python Operators and their priority while using them. Below is the list of commonly used mathematical operators mentioned in the priority in which they will be executed: Operator Usage Priority +(Plus) and (-)minus Used as unary operator 1 **(exponential)   2 *, /, //, %   3 + and – Used as binary operator 4 1) Using plus and minus operator in print function print(3+4) = 7print(3+4.0) = 7.0print(5-4) = 1print(10.0-2) = 8.0…

Read More Read More

Python Tutorial 4 – Python Literals

Python Tutorial 4 – Python Literals

Hi Friends, I hope you would have liked the previous tutorial https://itkaksha.com/python-tutorial-3-writing-first-program/ about writing basic Python programs. Let`s now begin this tutorial on Python Literals. Literals are something whose value is determined by the literal itself. They represent some fixed value. For ex: 25 – it’s a literal because 25 defines itself as an integer 10.5 – it’s a literal because it defines itself as a decimal/float number “I love Python” – it’s a literal because it defines itself as…

Read More Read More

Python 3.11.1 Features