Welcome to www.qatutorials.com!!!!
      
      
Question Answer Tutorial Search
Home Search Add Question Python

Basics

Core Data Types String List Mock Test Contact Feedback
Home
Search
Add Question
Python

Basics

Core Data Types
String
List
Mock Test
Subscribe/Unsubscribe
Email:
Social Media
Facebook

Misc Tutorials

References

Question and Answer Tutorial
Tutorials Point
Stack Overflow

Question Answer Tutorial - Python->Basics

Previous 1 2 Next
Question: What are different Keywords in Python?
Answer: Keywords are special reserved words which convey a special&n
bsp;meaning to the compiler/interpreter. Each/>keyword have a special meaning and a specific operation.&n
bsp;List of Keywords used in Python are:/> />/>/>/>/>
TrueFalseNoneandas
assetdefclasscontinuebreak
elsefinallyelifdelexcept
globalforiffromimport
raisetryorreturnpass
nonlocalinnotislambda

Question: What is Python?
Answer: Python is an object-oriented, high level language, interpreted,&n
bsp;dynamic and multipurpose programminglanguage./>Key Features:/> 1.) It is easy to learn, powerful and versatile 
;scripting language which makes it attractive for/>Application Development/> 2.) Its syntax and dynamic typing with its interpret
ed nature makes it an ideal language for/>scripting and rapid application development in many areas/> 3.) It supports multiple programming pattern including ob
ject oriented programming, imperative and/>functional programming or procedural styles/> 4.) It is not intended to work only on special&
nbsp;area such as web programming. That is why it is/>known as multipurpose because it can be used with web
, enterprise, 3D CAD etc/> 5.) We don't need to use data types to decl
are variable because it is dynamically typed so we/>can write a=10 to declare an integer value in a 
variable/> 6.) It makes the development and debugging fast beca
use there is no compilation step included in/>python development and edit-test-debug cycle is very fast
Question: What are main features of Python language?
Answer: There are a lot of features provided by python programm
ing language. Some of the important features/>are given below:/> 1) Easy to Use: Python is very easy to u
se and high level language which makes it is/>programmer-friendly language/> 2) Expressive Language: Python language is more ex
pressive. The sense of expressive is the/>code is easily understandable/> 3) Interpreted Language: Python is an interpreted 
language i.e. interpreter executes the/>code line by line at a time. This makes debugging&nbs
p;easy and thus suitable for beginners/> 4) Cross-platform language: Python can run equally 
;on different platforms such as Windows,/>Linux, Unix , Macintosh etc which makes it a portable
 language/> 5) Free and Open Source: Python language is f
reely available and redistributable/> 6) Object-Oriented language: Python supports object ori
ented language/> 7) Extensible: It implies that other languages suc
h as C/C++ can be used to compile the code/>and thus it can be used further in your python c
ode/> 8) Large Standard Library: Python has a large 
;and broad library/> 9) GUI Programming: Graphical user interfaces applicati
on can be developed using Python/> 10) Integrated: It can be easily integrated with&n
bsp;languages like C, C++, JAVA etc
Question: What type of application can be developed using Python?
Answer: Python can be in developement of folloiwng types of app
lication: 1) Console Based Application/> 2) Audio or Video based Applications/> 3) 3D CAD Applications 4) Web Applications/> 5) Enterprise Applications 6) Applications for Images/>
Question: How to define/initialize variable in Python?
Answer: In Python we don't to declare variable explicitly. When&
nbsp;we assign any value to a variable that/>variable is declared automatically. variable can be directly&nb
sp;initialized without defining it. In/>Python, we can initialize variable in following ways:/> 1.) Individual Assignment: Example: a=100; /> 2.) Multiple Assignment: Example: x=y=z=55; [Same value
 is assigned to all the variable x, yand z]/> 3.) Multiple Assignment with Multiple Values: Example:&
nbsp;x,y,z=10,15,20; [Values are assigned/>in the same order in which variables appears]
Previous 1 2 Next
Comment:
Name:Email:
Contact No.:
Copyright © 2014 by SBJ Group. All Rights Reserved. Developed and maintained by SBJ Group. Supported on Internet Explorer browser only