WELCOME TO NEW BLOG lets complete the entire python course after installation.
Here are some of the basic topics in Python programming:
- Variables
- Data Types
- Control Structures
- Functions
- Modules
- File Handling
let's learn about variables
Variables are used to store data values. Python has no command for declaring a variable. A variable is created the moment you first assign a value to it.
INT FUNCTION: INT IS a built-in function in Python that returns an integer object from a given object or converts a number in a given base to a decimal.
FLOAT FUNCTION: The float function in python is used to return a floating-point number from a number or string.
DICT FUNCTION: (DICT) dictionary A dictionary in Python is a data structure that stores key-value pairs, where each key is associated with a value. A dictionary can be used to store and access data efficiently, such as mapping names to phone numbers, words to definitions, or products to prices. A dictionary can be created in different ways, such as using curly braces {}, the dict () function, or a list of tuples.
List function: The list function in Python is used to create a list object from an iterable. A list object is a collection of items that are ordered and changeable. You can use the list function to convert a string, a tuple, a set, a dictionary, or any other iterator object into a list.
Range function: The range function in python is a built in function that returns a sequence of numbers, starting from 0 by default, and increments by 1 , and stops before a specified number. The range function can be used to iterate over asequence of numbers using a for loop. The range function can take one two three arguments : start ,stopand step.
DATA TYPES
A data type in Python is a category of values that tells what kind of data an object can hold and what operations can be performed on it. Python has many built-in data types, such as numbers, strings, lists, tuples, dictionaries, sets, and more. Each data type has its own class, methods, and attributes. You can use the type() function to check the data type of any object in Python. For example, type(5) will return <class ‘int’>, which means 5 is an integer object.
๐control structures
๐functions
๐modules
๐file handling
in next blog
THNX for watching pls follow for more......
-BY YASH RAJPUT




No comments:
Post a Comment