Monthly Archives: July 2019

Python print function – Printing Output

Python print function – Printing Output – This Python tutorial will explain the use of Python print() function for showing the output on screen in different ways. What is print() function in Python Python print() function is used as an output statement in Python programs. Example of print() function Here is a simple example: print(… Read More »

Loading

Python Decimal to Hexadecimal Conversion Program

Python Decimal to Hexadecimal Conversion Program – This Python tutorial will explain the actual logic to convert a decimal number to corresponding hexadecimal number. It will also explain the important statements of the Python program for conversion of decimal to hexadecimal number. How to Convert Decimal to Hexadecimal Number We know that the hexadecimal number… Read More »

Loading

Python Convert Binary Number to Decimal

Python Convert Binary Number to Decimal – This Python tutorial gives the basic logic to convert a binary number into its corresponding decimal number. The image number 1 shows the whole binary to decimal number conversion process . The Python source code to convert a binary number into decimal # This Python script / program… Read More »

Loading

Python Ternary Operator or Conditional Expressions

Python Conditional Expression is also called Ternary Operator. It is an alternative to a simple Python if else statement. Syntax of Python Ternary Operator or Conditional Expressions x  if   C   else   y Where x is a simple Python expression or statement. The C represents a given condition. The y represents another simple… Read More »

Loading