Skip to content

sru0309/python_practices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 17, 2023
8b99812 · Apr 17, 2023

History

59 Commits
Sep 22, 2022
Apr 17, 2023
Oct 16, 2022
Nov 14, 2022
Jan 8, 2023
Mar 7, 2023
Nov 14, 2022
Mar 7, 2023
Oct 5, 2022
Oct 7, 2022
Oct 12, 2022
Oct 1, 2022
Oct 4, 2022
Oct 5, 2022
Oct 7, 2022
Nov 4, 2022
Sep 24, 2022
Nov 1, 2022

Repository files navigation

Python Practice Codes

Topic Includes

Strings-

  • A string value is a collection of one and more characters put in single , double , triple quotes.

Operators-

  • operators are use to perform operation on variables and values.
  • 1.Arithmetic Operators
  • 2.comparison Operators
  • 3.Assignment Operators
  • 4.Logical Operators
  • 5.Bitwise Operators
  • 6.Membership Operators
  • 7.Identity Operators

Lists

  • A list object is an ordered collection of one or more data items, not necessarily of the same type ,put in square brackets
    • List Operations
      • 1.Concatenation
      • 2.List Indexing
      • 3.Slices

Loops

  • A loop is a statement that contain instruction that continually repeats until a certain condition is reached
    • 1.While loop
    • 2.For loop
    • 3.nested loop
    • 4.break,continue,pass statements

Functions

  • A funtion is a group of related statements that performs a specific task. A funtion is a block of code which only runs when it is called.

Function arguments - 1.Requried arguments - 2.Keyword arguments - 3.Default arguments - 4.Variable-length arguments

Module

modules are the simply files with the ".py" extension containing python code that can be imported inside another Python program