Skip to main content

Posts

Use of statement in python

Use of statement of Python: Use of if – else statement:-if – else is the variation of if statement. We attach condition with if statement if given condition is true then if block code will executed and if the given condition is false then else block code will executed. The syntax of if – else statement is given below:- if condition: Statement 1 Statement 2 else: Statement 3 Statement 4 Write a program in python to check the given number is even or odd. n=input(“Enter a number : ”) if n%2==0: print “The number ”,n,”is even” else: print “The number”,n,”is odd” Use of if-else ladder:- In Python language the switch statement is not worked. In Python we use if-else ladder in spite of using switch. The syntax of if-else ladder is given below:- if condition1: Statement 1 elif condition 2: Statement 2 elif condition 3: Statement 3 >br> else: Statement 4 Write a program in python to find greatest number in three numbers. a=input(“Enter firs
Recent posts

What is Python ?

What is python What is Python: - Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Python was developed by Guido Van Rossum in the late eighties and early nineties at the National Research Institute for Mathematics and Computer Science in the Netherlands. Features of Python:-  Less line of codes than other languages (fast execution)  Platform independent  Open Source  Object Oriented  It supports functional and structured programming methods  It can be used as a scripting language or can be compiled to byte-code for building large applications  It provides very high-level dynamic data types and supports dynamic type checking  It supports automatic garbage collection  It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java How to start the Python? First of all install the Python 2.7.12 on your system. After installation it will create a directory in C: drive named Python27. In Python27

history of computer.

History of Computer The ENIAC was invented by J. Presper Eckert and John Mauchly at the University of Pennsylvania and began construction in 1943 and was not completed until 1946. It occupied about 1,800 square feet and used about 18,000 vacuum tubes, weighing almost 50 tons. When was the first computer invented? There is no easy answer to this question due to the many different classifications of computers. The first mechanical computer, created by Charles Babbage in 1822, doesn't really resemble what most would consider a computer today. Therefore, this document has been created with a listing of each of the computer firsts, starting with the Difference Engine and leading up to the computers we use today. NOTE: Early inventions which helped lead up to the computer, such as the abacus, calculator, and tablet machines, are not accounted for in this document. First mechanical computer or automatic computing engine concept In 1822, Charles Babbage conceptualized and b

Classification of computer based on their cost size and confriguration.

<B><U> TYPES OF COMPUTER</B><U> Computer and it's Type Computers are classified by the type of data they are desinged to process. Data may be obtained either as a result of countig of through the use of same measuring instrument. Data that are obtained by counting are called discreate data are total numbers of students in a classroom. Data that must be obtained throgh measurement are called continous data. For example, continious data are the speeds an automobile measure by speedmotor or the tempreature of a patient as masured by a thermometer. Classification of computer based on their cost size and confriguration. In this category computers are classified

computer and it's generation

Computer and It's GENERATION Let us first define the term computer. Computer is defined in the Oxford dictionary as "An automatic electronic apparatus for making calculations or controlling operations that are expressible in numerical or logical terms." The definition clearly categorise computer as electronic apparatus although the first computers were mechanical and electromechanical apparatus. The definition is also pointing towords the two major areas of computer application viz. data processing and computer assisted controls/operations. The another important confluence of the definition is the fact that the computer can perform only those operations/calculations which can be expressed in logical or numerical terms. Computer Generation From the early 1940's to the present, Computer scientists have been able to identify clear-cut stages in the development of computer technology. With each stage, radical change in electronics have taken place. As a resu

History of C language

. History of C Language History of C language is interesting to know. Here we are going to discuss brief history of c language. C is an imperative procedural language.C is a general-purpose language which has been closely associated with the UNIX operating system for which it was developed - since the system and most of the programs that run it are written in C. C programming language was developed in 1972 by Dennis Ritchie at bell laboratories of AT&T (American Telephone & Telegraph), located in U.S.A. C was developed at Bell Laboratories as a system programming language to implement a new operating system on a DEP PDP-11 minicomputer. The project began in 1972, and a language description was published six years later (Kernighan and Ritchie, 1978) [C is a compact terse programming language that includes data types, data separations, the ability to manipulate addresses, and uncomplicated but complete set of flow control constructions. Dennis Ritchie is known as the fo

Introduction of C Language

Introduction of C The C programming language is a genera-purpose, high-level language (generally denoted as structured language). C programming languages was at first developed by Dennis M.Richie at At&T Bell Labs. C is one of the most commonly used programming languages. It is simple and efficient therefore it become best among all. It is used in all extends of application, mainly in the software development. Many software's & application as well as the compilers for other programming language are written in C also Operating Systems like Unix, Dos and Windows are written in C. C has many powers, it is simple, stretchy and portable, and it can control System Hardware easily. It is also one of the few languages to have an international standard, ANSI C. Advantages of C 1. Fast Powerful & efficient 2. Easy to learn. 3. It is portable. 4. "Mid-level" Language 5. Widly accepted language 6. Supports modular programming style. 7. useful for all