Friday, December 8, 2023

                                   welcome to new blog 

Today we will learn about:

πŸ‘‰  control structures
πŸ‘‰  functions
πŸ‘‰  modules
πŸ‘‰  file handling






                                       


Control structures

Control structures are a way to specify the flow of control in programs based on certain parameters or conditions. In Python, there are three types of control structures: sequenceselection and iteration1.

  • Sequence: The program executes statements one after another in the order they appear.
  • Selection: The program chooses between two or more alternative paths based on some condition. For example, the if statement.
  • Iteration: The program repeats a block of statements until some condition is met. For example, the for and while loops.




                                                functions


you can  learn about function  by clicking a link given below:


   click hereπŸ‘‰πŸ‘‰      functions




                                                  module


  • A Python module is a file containing Python definitions and statements. A module can define functions, classes, and variables. A module can also include runnable code. Grouping related code into a module makes the code easier to understand and use. It also makes the code logically organized.
                                                                            


                                                                            file handling


File handling in Python is a powerful and versatile tool that can be used to perform a wide range of operations. However, it is important to carefully consider the advantages and disadvantages of file handling when writing Python programs, to ensure that the code is secure, reliable, and performs well.


                                         thnx for watching                                                                                                

follow for more


                                           -by yash rajput

Wednesday, December 6, 2023

SOME TOPICS IN PYTHON

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.
                       πŸ‘‰ THERE ARE SOME TYPES OF VARIABLES


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.



we will learn about  
πŸ‘‰control structures 
πŸ‘‰functions
πŸ‘‰modules
πŸ‘‰file handling

                         in next blog


                                                               THNX for watching pls follow for more......

                                                                                                          -BY YASH RAJPUT



Tuesday, December 5, 2023

PYTHON INSTALLATION

πŸ’’Python is a high-level, interpreted scripting language developed in the late 1980s by Guido van Rossum at the National Research Institute for Mathematics and Computer Science in the Netherlands. The initial version was published    in 1991, and version 1.0 was released in 1994. 



ABOUT

πŸ‘‰Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis. Python is a general-purpose language, meaning it can be used to create a variety of different programs and isn’t specialized for any specific problems. This versatility, along with its beginner-friendliness, has made it one of the most-used programming languages today.



INSTALLATION

πŸ‘‰ To install python software in windows. some steps are given below.


1-Visit the python website in your web browser.


2-Select the latest version of python from the list and download the executable installer.

3-Run the installer and follow the instructions.

4-Ensure that you add python to the path when presented with the option.




                                                   { FOLLOW  FOE MORE UPDATES }



                                         



                                    welcome to new blog  Today we will learn about: πŸ‘‰  control structures πŸ‘‰  functions πŸ‘‰  modules πŸ‘‰  fil...