Python Assignment
Python Assignment
Boolean
Numeric (Integers, Long, Float, Complex)
Sequences (Lists, Strings, Byte, Tuple)
Sets
Mappings (Dictionaries)
File objects
Free and Open Source → Python is a open sourced language. Thus it is publicly available to
download and use and even anyone can contribute to its development.
ANS.3 - Python does not require semi-colons to terminate statements. Semicolons can be used to
delimit statements if you wish to put multiple statements on the same line. A semicolon in Python
denotes separation, rather than termination. It allows you to write multiple statements on the same
line.
Q.4 – What is python? How python interprets? What are python decorators?
Ans.4- Python is an interpreted, object-oriented, high-level programming language with dynamic
semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding,
make it very attractive for Rapid Application Development, as well as for use as a scripting or glue
language to connect existing components together. Python's simple, easy to learn syntax emphasizes
readability and therefore reduces the cost of program maintenance. Python supports modules and
packages, which encourages program modularity and code reuse. The Python interpreter and the
extensive standard library are available in source or binary form without charge for all major
platforms, and can be freely distributed.
Python decorators show how the Python programming language packs several features in
your small and beneficial package. Decorators can be applied to classes and functions to make
programming fascinating. They can speed up the performance, shorten and completely change the
dynamics of what the code can do.
if expression
Statement
else
Statement