Which Language ..? • Programing language is formal language devised to express computation • Alphabets a computer can understand: 0 and 1 • Your laptop: – 32-bit or 64-bit..? • Your smartphone: – 32-bit or 64-bit..?
Why Python? • Simple • Simple and minimalistic due to Pseudo-code nature • Easy to learn • Structure and syntax are pretty intuitive and easy to grasp • Free and Open source • Downloading and installing Python is free and easy • Source code is easily accessible • Easy to use as Interpreted • Rapid turnaround: no intermediate compile and link steps as in C or C++ • Python programs are compiled automatically to an intermediate form called bytecode, which the interpreter then reads • This gives Python the development speed of an interpreter without the performance loss inherent in purely interpreted languages
Why Python? • Object-oriented • Structure supports such concepts as polymorphism, operation overloading, and multiple inheritance • Portable • Python runs virtually every major platform used today • As long as you have a compatible Python interpreter installed • Extensible & Mixable • Python can be linked to components written in other languages easily • Linking to fast, compiled code is useful to computationally intensive problems • Python is good for code steering and for merging multiple programs in otherwise conflicting languages • Python/C integration is quite common
Why Python? • Embeddable • Python can be embedded within C/C++ to give scripting capabilities • Powerful • Dynamic typing • Built-in types and tools • Library utilities • Third party utilities (e.g. Numeric, NumPy, SciPy) • Automatic memory management
Course anatomy • Unit #1 – Introduction : python programming language, introduction to program and debugging, formal and natural language – Variables, Expression, and Statements : Values, variables, Variables name and keywords, statements, operators and operand, order of operations, operations on string, composition and comments – Conditionals and Iteration : modulus operator, boolean expressions, logic operators, conditional, alternative execution, nested conditionals and return statements, while statements, encapsulation and generalization
Course anatomy • Unit #2 – Functions and recursion : function calls, type conversion and coercion, math functions, adding new function, parameters and argument, recursion and its use – String and Regular Expressions : string a compound data type, length, string traversal, string slices, comparison, find function, looping and counting
Course anatomy • Unit #3 – Lists : list values, length, membership, operations, slices, deletion, accessing elements, list and for loops, list parameters and nested list – Tuples and Dictionaries : mutability and tuples, tuple assignment, tuple as return values, random numbers and list of random numbers, counting and many buckets, dictionaries operations and methods, sparse matrices, aliasing and coping
Course anatomy • Unit #4 – Creating and Manipulating Numerical Data: Arrays, Creating Arrays, Basic Data Types, Indexing and Slicing, Copies and Views, Numerical Operations on Array
Course anatomy • Unit #5 • Data Exploration and Analysis : • Understanding Series Objects, Creating a Series, Accessing Data from a Series, Exploring and Analyzing a Series, Operations on a Series, • Understanding Data Frame Objects, Creating a Data Frame from List, Dictionary and series, Creating a Data Frame from Excel Spreadsheets and CSV files, Dealing With Null Values and Missing Values in Datasets, Updating and Accessing a Data Frame, Exploring and Analyzing a Data Frame, Statistical Data Analysis
Course anatomy • Unit #6 – Data Visualization : Drawing a Basic plot, Drawing multiple lines and plots, Subplot Function, Drawing Bar Graph, Drawing Pie Chart, Drawing Histogram, Drawing Box and Scatter Plot, Sine wave Plot , Plotting Graph from File using Pandas.
Tasks@HOME • Download and install Python* • Download and install Python through Anaconda* • Create Google colab account • Download your syllabus and IP • Download a free book: ‘A Byte of Python’ • Video Watch: INT102-1 and INT102-2 • Create GitHub A/c