Posts

Showing posts from February, 2024

day 3# - Comments, Escape Sequences and Print Statement!

Image
* COMMENTS-         Comments can be used to explain  Python code.        Comments can be used to make the code more readable.         Comment Statement can not be Execute        Comments starts with a # , and python will ignore them.     Ex.      # this is a comment                  print ("hey I am a student" )    ex.2    #this is a single line statement            input-   print("this is a print statement")            output-  this is a print statement * MULTILINE COMMENTS #It will execute a block of code if a specified condition is true. #If the condition is false then it will execute another block of code. Input- p = 7 if (p > 5):     print("p is greater than 5.") else:     print("p is not greater than 5.") OUTPU...

day 2# - Our First python program!

Image
  # Print-   'print is function and to invoke any function we use parenthesis( ) like this   Python print() function prints the message to the screen or any other standard output device. In this article, we will cover about print() function in Python as well as it’s various operations. # String-      A String is a data structure in Python that represents a sequence of characters.      Program 1.          print("hello world")        print(6)        print("Bye")        print(15*10) After Execution-       hell0 world      6      bye      150 Program 2. print ( "Hello" ,  "how are you?" ) hello how are you?   ALL THE BEST TO ALL FUTURE PROGRAMMER. Thank you

day 1# - Modules and pip in Python!

Image
*MODULE-                                                                      Module is like a code library ,basically modules are used to borrow someone else's code which means you can use someone else's code in your Program with the help of Modules. The main module is  the source file that runs first .  Benefit of Modules- if your are use module it'll save your time and efforts and you and you can work on some big Project. *There are Two Types- 1.Built in modules-                             these modules are ready to import and used and ships with the python interpreter there is no need to install such modules explicitly  (" There are a lot of built-in modules in Python. Some of the important ones are - Collection datetime, lo...

Discuss about Python Programming Language!

Image
Python Programming Language *                                                                                          python is a high level programming language made of Guido van Rossum in `1991. Develop by python software foundation What are the feature of python  1. Simplicity  2. Open Sources language  3. Portability 4. interpretation 5. huge library How to learn python in basics *  step 1.    variables , python data types , Operators. step 2.    Arrays (how to Store data) step 3.    Flow control , python loops , condition problems solved  step 4.   Methods step 5.  OOPs (important classes and objects ) Step 6.  Programming Practice.               ...