Skip to content
surendrabisht edited this page Aug 3, 2021 · 8 revisions

Welcome to the Python for Beginners

Abstract of Programming languages

Programming is all about solving problems . To Solve any problem ,we need user input or a data source or fixed data which helps to solve the problem and get the desired operation on data or produce a new data. So, its all about input Data and logic we apply to get meaningful data from a program.

So, we need something to saved Data. Here comes the keyword variable.

variable = value

this variable will be used in program to access the value stored in memory location. whenever we need data, we need some variable (either value or reference type).

Value type variables : These variables just store just the value. Reference type variables : These variables just store the address of location where value is stored. They refer to that location where actual data is stored.

Data Types: variable holding value will of some type that helps identify the type of data this variable stores.

  • int => this denotes integer values. i.e. no decimal values stored. Number can be positive or negative and the range of values that can be stored depends on the compiler how much memory it allows to save data.
  • float => this denote real values.
  • boolean => this denotes true or false, 0 or 1.
  • char => single character.
  • string => combination of characters

IDE : Integrated Development Environment

It is the software which is a text editor to help us write code, compile and run the application under one roof. It facilitates software development by giving suggestions, highlighting syntactic errors and easy formatting shortcuts and even help us debug the code line by line. So helps us in various ways.

For python, some famous IDE/Code Editors are :

  • IDLE is inbuilt IDE provided by python community.
  • Microsoft Visual Code
  • Pycharm
  • Sublime Text
  • Jupyter notebook

Compiler

Compiler is a program provided by your language which converts your code (High level language code ) to Machine understandable code ( low level language). It might be a case that it can convert to some intermediate language (which neither you nor your machine understands) understood by runtime engine which ultimately converts this to machine language to execute set of instructions written in program.    runtime engine is the one responsible for running your code. So in short, compiler checks any syntax erros and converts your code to intermediate/ machine language and runtime engine runs it. Ultimately , every program is converted to machine language i.e. in form of binary(0s and 1s)

Standard Library of Language

Now, every time you write some code, you need some build-in functions to print, take input from user and various already implemented functionalities by language. So, every-time you need to write program will have to use some of these inbuilt functions/classes to start writing code on top of these basic functionalities. So how does compiler understand your program? Compiler checks basic syntax and if it finds your code using any function not written in your program, it will check its in-built library for this function. if it finds that this function in library, compilation is done successfully.



! This was just a basic idea. From next page, we will talk about coding in python.
Clone this wiki locally