0% found this document useful (0 votes)
3 views2 pages

Python Answers

The document provides a comprehensive overview of Python programming, covering its features, string manipulation, data structures like lists, tuples, and dictionaries, as well as functions and variable scopes. It also discusses modules, packages, object-oriented programming concepts, exception handling, GUI methods using Tkinter, and notes on libraries such as NumPy and Pandas. Additionally, it touches on data visualization, deep learning, data modeling, and natural language processing.

Uploaded by

kdkunaldalvi5381
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Python Answers

The document provides a comprehensive overview of Python programming, covering its features, string manipulation, data structures like lists, tuples, and dictionaries, as well as functions and variable scopes. It also discusses modules, packages, object-oriented programming concepts, exception handling, GUI methods using Tkinter, and notes on libraries such as NumPy and Pandas. Additionally, it touches on data visualization, deep learning, data modeling, and natural language processing.

Uploaded by

kdkunaldalvi5381
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PYTHON – IMPORTANT QUESTION ANSWERS

LESSON – 1
Q1. Explain features of Python.
Features:
1. Simple and Easy to Learn
2. Interpreted Language
3. Object-Oriented
4. Portable
5. Large Standard Library
6. Extensible & Embeddable
7. Dynamic Typing
8. High Level Language
Q2. Explain string manipulation.
String operations: indexing, slicing, concatenation, repetition, find, replace, split, join, case
conversion.
Q3. Explain list in detail.
List is ordered, mutable, allows duplicates. Methods: append, insert, remove, pop, sort, reverse.
Q4. Explain tuple in detail.
Tuple is ordered, immutable, allows duplicates.
Q5. Explain dictionary manipulation.
Dictionary stores key-value pairs. Operations: add, update, delete, keys, values.
Q6. Define function & types.
Function is reusable block. Types: Built■in, User■defined, Lambda, Recursive.
Q7. Local & global variable.
Local inside function; global outside.
LESSON – 2
Q1. Module & creation.
Module = Python file with functions. Create [Link], import using import.
Q2. Built■in modules.
Examples: math, random, os, sys.
Q3. Package creation.
Folder with __init__.py. Import using from pkg import mod.
Q4. Predefined packages.
NumPy, Pandas, Matplotlib.
LESSON – 3
Q1. Class & object.
Class = blueprint. Object = instance.
Q2. Class methods.
Instance, classmethod, staticmethod.
Q3. Inheritance & types.
Types: single, multiple, multilevel, hierarchical, hybrid.
Q4. IS■A & HAS■A.
Inheritance & composition.
Q5. Program: Rectangle area & volume.
LESSON – 4
Q1. Common exceptions.
ZeroDivisionError, TypeError, ValueError, IndexError, KeyError.
Q2. try■except■else.
Q3. try■finally.
Q4. assert statement.
LESSON – 5
Q1. GUI methods – Tkinter.
Q2. Tkinter example.
Q3. Widgets: Label, Button, Entry.
Q4. Geometry managers: pack, grid, place.
Q5■Q8. Frame, Button, Label, Entry details.
LESSON – 6
Q1. Notes on NumPy, SciPy, Pandas.
Q2. Data visualization.
Q3. Deep learning.
Q4. Data modeling & ML.
Q5. NLP definition.

You might also like