Posts

Showing posts with the label operations

Python Programming

Image
 Python Programming  Introduction to python programming Python is a high-level, interpreted programming language known for its simplicity and versatility. It is widely used in various fields, from web development to data science, machine learning, automation, and more. This introduction will cover the basics of Python programming, including its features, installation, and core concepts. Program 1: write  a python program to demonstrate basic data types in python (here we have many other data types) sol:                  print ( "----int----" ) print ( "possible integer values" ) print ( 15 ) print (- 25 ) print ( 0o 15 ) print ( 0x 12a ) x = 2 x = int ( 2 ) print ( x ) print ( int ( 25.5 )) print ( int ( "25" )) print ( "operations on integers" ) print ( "arithmetic operatons" ) print ( 2 ** 3 ) print ( 2 * 3 ) print ( 20 / 3 ) print ( 10 // 3 ) print ( 10 + 3 ) print ( 10 - 3 ) print ( "mathematical function" ) print ( pow ( ...