Posts

Showing posts from May, 2025

Advance Python - Session 3 : Python Conditionals and Loops

Home Page   Advance Python - Session 3 : Python Conditionals and Loops The range() function The range() function of Python generates a list which is a special sequence type. A sequence in Python is a succession of values bound together by a single name. Some Python sequence are : Strings, lists, tuples, etc. Syntax 1)range(<lower limit>, <upper limit>) E.g : range (0, 5) It will produce a list as [0,1 ,2 ,3 ,4] Note : The lower limit is included in the list but upper limit is not included in the list. 2) range(<lower limit>,<upper limit><step value>)    # all values should be integers E.g : range(l, u, s) will produce           l, l+s, l+2s, ..... <=u-1 range (0,10, 2) will produce list as [0, 2, 4, 6, 8] 3) range (5) will produce list [0, 1, 2, 3, 4] The for LOOP The for loop of Python is designed to process the items of any sequence, such as a list or a string, one by one. Syntax: for<variable>in ...

Unit - VII - Advance Python - Session - II - Python Basics in New Flavour

Home Page Unit - VII - Advance Python -  Session - II - Python Basics in New Flavour Token- The smallest individual unit in a program is known as a Token or a lexical unit. Python has following tokens:- i) Keywords ii) Identifiers (Names)     iii) Literals   iv) Operators  v) Punctuators i) Keywords Definition : Keywords are reserved words in Python that have special meaning to the language compiler and cannot be used as identifiers (variable names). Examples : if = 5  # ❌ Error: 'if' is a keyword, cannot be used as a variable name # Correct usage of keyword if 10 > 5:     print("10 is greater than 5") Common Keywords : if , else , while , for , def , class , return , import , in , and , or , not , etc. ii) Identifiers Definition : Identifiers are fundamental building blocks of a program. They are the names used to identify variables, functions, classes, modules, etc. Rules : Must begin with a letter (A–Z or a–z) or an underscore ...

Unit - VII - Advance Python - Session - I - Jupyter notes and other Python development

  Home Page Unit - VII - Advance Python Session - I - Jupyter notes and other Python development Python programs can be written and developed on platforms such as Jupyter Notes and Spyder IDE. IDE full form is Integrated Development Environment Working in Python Before working in Python, we need to install python on our computers. - Default installation available from www.python.org is called CPython installation and comes with Python Interpreter, Python IDLE(Python GUI) and Pip (package installer). - Anaconda Python distribution is one such highly recommended distribution that comes preloaded with many packages and libraries (e.g- Numpy, SciPy, Matplotlib, Panda libraries, etc) - Popular IDEs are Spyder IDE, Pycharm IDE, etc Python can be worked in two different ways:- i) Interactive mode (also called immediate mode) ii) In script mode Interactive Mode in Python Definition: Interactive mode allows us to type Python commands line by line and see immediate results. You typically a...

Session 5: Time Management

Home Page Session 5: Time Management Time Management: - It refers to the planning out of available time and controlling the amount of time and controlling the amount of time to be spent on specific tasks in order to work more efficiently. Importance of Time Management - It improves performance  -It delivers better work quality - Work is delivered in time - It brings more efficiency - It reduces stress Consequences of Poor Time Management - Poor quality work - Missing deadlines -Increased stress levels - Ruined or disturbed work-life balance Steps for Effective Time Management Organize - Planning out your time in advance.  Priortize- Determining what tasks are the most urgent. Control- This step is about controlling and monitoring how tasks are carried out as per the plan and priority Track Time - It helps to records all the hours spent on task Time Management Tips - Sticking to the schedule; avoiding delays and procrastination - Starting with important and urgent tasks first -...

Session 4: Self-Regulation – Goal Setting

  Home Page Session 4: Self-Regulation – Goal Setting Goal - It refers to the process of planning and taking active steps to achieve a specific goal. SMART Goals SMART is an acronym used for goal setting. To make sure that the chosen goals are clear and reachable, they should be SMART i.e : - Specific ( Simple and sensible) - Measurable (meaningful) - Achievable (attainable) -Relavant (reasonable, realistic and resourced, results-based) - Time bound (timely, time-sensitive) Specific To set a specific goal we must answer following questions: Who:  Who is involved? What: What do I want to accomplish? Where:  Identify a location.   When: Establish a time frame. Which: Identify requirements and constraints. Why: Specific reasons, purpose or benefits of accomplishing the goal.

Light - Reflection and Refraction

Image
  Light - Reflection and Refraction  1. Introduction to Light Definition : Light is a form of energy that enables us to see objects. It travels in straight lines (rectilinear propagation). Nature : Light is an electromagnetic wave that does not require a medium to propagate. Speed : In a vacuum, the speed of light is approximately 3x10 8 m/s 2. Reflection of Light Definition : Reflection is the phenomenon where light bounces back into the same medium after striking a polished or shiny surface (e.g., a mirror). Types of Reflection : Regular Reflection : Occurs on smooth surfaces (e.g., plane mirrors), producing a clear image. Diffuse Reflection : Occurs on rough surfaces (e.g., paper), scattering light in multiple directions, no clear image formed. Laws of Reflection : 1.               The angle of incidence (angle i) is equal to the...