Skip to main content

Posts

Let’s Get Started with Python

NOTE: The tutorial is aimed at people who have no prior programming experience. If you have previous experience with other programming language (C) and just want to compare the syntax you can jump to this page (link will be updated soon). If you have no compilers installed then you may follow the installation guide here>> How to Install PyCharm? Tutorial00 Statements Let’s start by using  print() , it simply prints whatever you type in double or single codes. As per the tradition let’s print Hello World. In the python file you created type print(“Hello World”) or print(‘Hello World’) as shown below

How to Install PyCharm? (Windows, Mac, Ubuntu)

  A little introduction PyCharm is one of the widely used IDE for python programming and used by many programmers these days. It is available in three editions: Professional, Community and Educational (Edu). We will prefer Edu edition as it is an open source and free to use. Also, it fits our purpose of learning python as a beginner. If you have already installed pycharm or some other compiler you can skip this and read the tutotrial here>> Let's Get Started with Python Install PyCharm You can go to the official page and follow the guide to installation, to go to the official page click here or stick with me and follow the steps below. This is the direct link to install PyCharm Edu>> click here Already Installed PyCharm Community or Professional? Then you just need to install EduTools Plugin. To install the plugin follow these simple steps: 1.        Go to Files>>Settings... or Press Ctrl+Alt+S to open Setting/Preferences dialogue. 2.  

How to Install C ?(Windows, Mac, Ubuntu)

  How to Run C program in Windows, Mac, Linux? If you have already installed C you can skip to part 1 where an overview is provided 101/Introduction to C - part 1   or you can start from some core topics here 101/Introduction to C - part 2  If you want to install PyCharm you may follow the installation guide here>> How to Install PyCharm? Ways to run C:  1. Using Online Compilers is the easiest way to run your C program, here is the Online Compiler that I  prefer:  https://rextester.com/l/c_online_compiler_gcc   2 .  Installing C compilers in system. Windows:     I prefer Dev C/C++ compiler, so here the steps to follow:   1.  Download the source file here :   Dev C/C++ setup   2.   After downloading run the setup you will see the 'select language' pop-up:

101/Introduction to C language - part 1

We are assuming you have C compiler already Installed in your systems, if not you can read  How to install C compilers ? (Ubuntu, Mac, Windows) What is C ? C is high-level compared to assembly but low leveled compared to JavaScript. But in general terms C is considered as high level language . So when we talk about c language, we usually hear the following terms Header file Data types Variables Main function Operators Hello World Program ( gateway to programming world  😉 ) Addition/Subtraction program for the basic understanding of Operators What is Header File ? As a beginner I never got a satisfactory answer for the same. In a nutshell, we can say “ It's just like a brain to a body ” ,  It enables us to use the functionality which is pre-implemented by the Developers, just like the brain adds the functionality to other body parts. Header file has a file extension of '.h'  for example “stdio.h” also called standard input-ou

101/Introduction to C Language - part 2

To get an overview of C language read:  101/Introduction to C - part 1 Following are some basic topics which we will cover in this tutorial: How to take input from the users ( Managing Input and Output operation). How to take decisions (Decision making and Branching). ie. If-else and nested If-else Looping:  for loop, nested for loop, while/do while loop. Arrays. How to take input from the user in C Following are the two ways to take input from the user Using normal input syntax Taking input as command line argument 1. Using normal input syntax In C programming, scanf() function is used to read character, string,  numeric data from keyboard. It uses format specifier as parameter to take type of input like ‘ %s ’ for string , ‘ %d ’ for interger , ‘%c ’ for character . Example:  #include<stdio.h> int main() { int i; printf("Enter any Number:"); //taking Integer input from the user and storing at the address of variable i