Successfully reported this slideshow.
Your SlideShare is downloading. ×

Format of first slide for main PPT-GIT.pptx

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Anish PPT-GIT.pptx
Anish PPT-GIT.pptx
Loading in …3
×

Check these out next

1 of 18 Ad

More Related Content

Recently uploaded (20)

Advertisement

Format of first slide for main PPT-GIT.pptx

  1. 1. GLOBAL INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering A PRACTICAL TRAINING on Python for data science Submitted to: Mr. Pradeep Jha Head of Dept. Presented By: Mohammad Anish Reg. No.: 21EGJCS076 Semester – III Year - II Session: 2022-23
  2. 2. CONTENT • Introduction • Why python • Datatypes in Python • Printing statements • Operators • Loops • Functions
  3. 3. Introduction • Python is a popular programming language , and released in 1991. • It is used for: • web development (server-side), • software development, • mathematics, • system scripting.
  4. 4. Why Python? ⚫ Simple ⚫ Powerful ⚫ Usually preinstalled ⚫ LessSyntax ⚫ OpenSource
  5. 5. Datatypes in python • Int • List • String • Boolean • Float
  6. 6. Printing a Line of Text • print(“ “) • Anything placed inside the quotes will be printed on the screen upon execution of the print command. • print(“Python Presentationn”) • print(“by: Mohd. Anish”)
  7. 7. Operators in Python • Arithmetic operators (+ , - , *, /, %) • Assignment operators (= , += , -= , *= , /= , %=) • Comparison operators (==, !=, <, >) • Logical operators (and, or, not) • Bitwise operators(& , |)
  8. 8. Loops in python • Loops are used for iterating over a sequence Types of Loops: • While Loop • Do-while Loop • For Loop
  9. 9. While loop • Syntax: while condition:{ execute this code in the loop's body }
  10. 10. Do-while Loop • Syntax: do { loop block statement to be executed; } while(condition);
  11. 11. For loop • Syntax: for val in sequence: Loop body
  12. 12. Example print(“Hello”) Step 3: Execute the body of the loop Step 1: Perform the initialization expression Step 2: Evaluate the test expressions Step 4: Perform the update for i in range(0, 5, 1): Update i
  13. 13. Function Definition • Definition includes: • return value: the value the function returns to the part of the program that called it • name: name of the function. Function names follow same rules as variables • parameter list: variables containing values passed to the function • body: statements that perform the function’s task
  14. 14. Calling a Function • Functions just like variables need to be called in order to be invoked • Code: Calling a Function: • functionName (Parameters)
  15. 15. Thank You!

×