Skip to main content

Posts

Showing posts with the label Programming

Python Variables

variables,the name itself implies that a variable is something which can change.  Variables are like containers for storing  our data values in memory. we can change the data in variables, in python everything is an object and variables are like names given to the object, by labeling them we can easily access them. In other high level languages like C programming language, c++ programming language, and java programming language. etc.,   we need to declare the datatype of the variable , but in python it will automatically recognize the type of data you are storing in a variable. ** Remember that a variable is a name which is given to a value not to the memory. Declaring a variable is very easy you need to assign a value or a string using '=' operator. >>> p=9 >>> print(p) 9 Assigning a single value to multiple variables We can assign a single value to multiple variables.  >>> a=b=c=56 >>> a 56 >>> b 56 >>> c 5...

Operating System

 Operating System:- An operating system is a program that manages the computer hardware.      It also provides a basis for application programs and acts as a intermediary between computer user and computer hardware. Some Operating Systems Windows Linux Ubuntu Mac OS X  IOS Android CLICK 👇 TO GET MORE   Types of Operating System Batch Operating system Time sharing Operating system Distributed Operating system Network Operating system Real Time Operating system Multi programming/Processing/Tasking Operating system Mobile Operating System CLICK 👇 TO GET MORE Functions of OS     Device Management  Process Management  Memory Management Security File Management  Mastermind Storage Management Input and Output Operations Main goals of Operating System Convenience-Provides convenient to user Efficiency-Operating system allows the computer system resources to be used in an efficient manner Ability to evolve:- An operating system should be c...

Indentations in Python

  INDENTATION : Indentation is nothing but giving proper spaces they are like {} braces don’t need to mention any {} braces to indicate a set of code or code so our compiler or interpreter need to understand from where to stop and where to continue again .our compilers or interpreters don’t know the order in which the statements of the code should be executed so we use indentations to specify compilers to execute them in order ** we all know that python is very easy and a simple language which means we don’t need to mention datatypes and syntaxes also will be very easy to understand when   compared to other languages but if you don’t give proper indentation   then it shows us hell, so we need to use proper indentation or else you will be ending up seeing that that “INDENTATION ERROR”   message . Ø   Actually, indentation is nothing but giving spaces before the statements Ø   Actually, we use tab or space for indentation in python, by default python us...

Number System in Python

  Python generally supports integers, fractional values and complex numbers and we have data types for them like int for integers, float for fractional values, and complex for complex numbers, we can understand that but if our computer wants to perform certain operations on bits or some other operations then we need to convert them into some number systems like binary, octal, hexadecimal. These are the three different number systems. Number conversions are used in programming languages because we cannot directly use some operators like bit-wise operators, we need to convert decimals into binary and sometimes we need to convert binary format of a number to decimal, so we use number conversions there Actually, number conversions are done on 4 types 1.       Decimal 2.       Binary 3.       Octal 4.       Hexadecimal 1. Decimal to binary:      ...

Index in Python

  Generally, we add elements in lists, tuples and we delete items, insert elements etc but how can we do that, how can we access a particular element, this is done by using index number. PDF FOR  INDEX IN PYTHON   Ø   Index numbers are nothing but numbers which are given to elements in a list or tuple or array etc to access them. Ø   Index number starts with zero and ends with one less than the given number but For example  List = [1,5,8,13,24,31] 0  1  2  3   4   5 Ø   Each index refers to one element, as we know here the elements in the list are 6 but the maximum index will be 5 this is because index starts with zero so maximum index will always be one less than the length of list or tuple or array etc. ADVANTAGES in Python: Ø   It makes our work easier like we can easily delete the element we want to delete by just using its index number. Ø   There are lot of ways to print elements using ind...

Python

python is basic language if you are new to programming  then better to start with python. Already we have discussed what is programming  and tips to start/learn programming   in one of my previous post. And python is fastest growing language in terms of developers and companies using it. Python can be used to make Web applications, Game development, machine learning, Data science etc.        So in this Techy Drift platform we will learn python. This tutorial is for Absolute beginners only who are new to programming. Here we will cover Syntax,concepts,and basics. I will show the programs execution through my own videos. So  guys let's get into the topic. PYTHON:- It is a Programming Language also an interpreted, Object oriented and High-Level Language. As we know that using python we can make wonders. Do you know why python is most important and famous ??  We  already  have c, c++, java etc but still python is very famous. ...

Contact form

Name

Email *

Message *