Blog

python tutorials and learn python

Created with Sketch.

C program to generate random numbers

  C program to generate random numbers C program to generate pseudo-random numbers using rand and random function (Turbo C compiler only). As the random numbers are generated by an algorithm used in a function they are pseudo-random, this is the reason that word pseudo is used. Function rand() returns a pseudo-random number between 0…
Read more

C program to add two complex numbers

  C program to add two complex numbers C program to add two complex numbers: this program performs the addition of two complex numbers which will be entered by a user and then prints it. A user inputs real and imaginary parts of two complex numbers. In our program we will add real parts and…
Read more

C program to print date

  C program to print date C program to print current system date. To print date, we will use getdate function. C programming code (Works in Turbo C only) #include <stdio.h> #include <conio.h> #include <dos.h> int main() { struct date d; getdate(&d); printf(“Current system date: %d/%d/%d”, d.da_day, d.da_mon, d.da_year); getch(); return 0; } This code…
Read more

C program to get IP address

  C program to get IP address C program to print IP (Internet Protocol) address of your computer, system function is used to execute the command “ipconfig” which prints IP address, subnet mask, and default gateway. The code given below works for Windows XP and Windows 7. If you are using Turbo C compiler then…
Read more

C program to shut down or turn off the computer

  C program to shut down or turn off the computer C program to shut down your computer, i.e., to turn off a computer system. System function of “stdlib.h” is used to run an executable file “shutdown.exe” which is present in C:\WINDOWS\system32 folder in Windows 7 & XP. See Windows XP and Linux programs at…
Read more

C programming

  C programming C programming language: To easily learn C language you must start making programs in it. As you may already know that to develop programs you need a text editor and a compiler to translate a source program into machine code which can be executed directly on a machine. Dev C++ IDE is…
Read more

Verifying your installation of Anaconda

  Verifying your installation You can confirm that Anaconda is installed and working with Anaconda Navigator or conda. Anaconda Navigator Anaconda Navigator is a graphical user interface that is automatically installed with Anaconda. Navigator will open if the installation was successful. If Navigator does not open, review our help resources. Windows: Click Start, search or…
Read more

Anaconda Installing on macOS

Installing on macOS You can install Anaconda using either the graphical installer (“wizard”) or the command line (“manual”) instructions below. If you are unsure, choose the graphical install. macOS graphical install Download the graphical macOS installer for your version of Python. RECOMMENDED: Verify data integrity with SHA-256. For more information on hashes, see What about…
Read more

Anaconda Installing on Windows

Installing on Windows Download the Anaconda installer. RECOMMENDED: Verify data integrity with SHA-256. For more information on hashes, see What about cryptographic hash verification? Double click the installer to launch. Note To prevent permission errors, do not launch the installer from the Note If you encounter issues during installation, temporarily disable your anti-virus software during…
Read more

Flavors of Python

Flavors of Python: 1) CPython: It is the standard flavor of Python. It can be used to work with C lanugage Applications. 2) Jython OR JPython: It is for Java Applications. It can run on JVM 3) IronPython: It is for C#.Net platform 4) PyPy: The main advantage of PyPy is performance will be improved…
Read more