Python: Some of the instances of basic if-else

Python Some of the instances of basic if-else

Python: Examples of if-else: Here, we will find out about basic if-else by utilizing a portion of the little model codes. Example1: Enter a number and check whether it is 10 or not: Output: Example2: Find the biggest of two numbers: Output: Example3: Find the biggest of two numbers utilizing single articulation: Output:

Python program to discover floor division

Python program to discover floor division

floor division in Python: Here, we will figure out how to discover floor division utilizing floor division (//) administrator in Python? At the point when we partition a number by another number – division administrator (/) return remainder, it might be a whole number or buoy. Be that as it may, when we need remainder … Read more

Python program to switch a given number (2 distinct ways)

Python program to switch a given number (2 distinct ways)

Switching a number in Python: Here, we will learn various approaches to turn around a given number in Python. Example: Here, we are actualizing program to turning around a given number utilizing 2 distinct ways. 1) Famous methodology for turning around the number: Take contribution from the client and pigeonhole into a whole number, at … Read more

Python program to concentrate and print digits in invert request of a number

Python program to concentrate and print digits in invert request of a number

Extricating digits in Python: Here, we will figure out how to concentrate and print the digits in turn around the request of a number in Python? Here, we are going to utilize some numerical base while programming. The issue is, the point at which you ask a number from the client, the client would give … Read more

Python program to discover the intensity of a number using recursion

Python program to discover the intensity of a number using recursion

Discovering the intensity of a number: Here, we are going to execute a python program to discover the intensity of a given number utilizing recursion in Python. Given the base x and the power y and we need to discover the x to the power y utilizing recursion in Python. By utilizing recursion – We … Read more