Summary
Keywords
Full Transcript
Welcome to Lecture 21 of the course "Programming in Python" by Prof. Sudarshan Iyengar. Full Course: https://study.iitm.ac.in/ds/course_pages/BSCS1002.html Video Overview In this lecture we introduce the power of the if statement in programming using a fun and relatable example. With the movie Avengers rated PG 13 as the backdrop we build a simple Python program that checks if a user is old enough to watch it. You will see how if and else conditions control the flow of a program leading to different outputs based on user input. The lecture also explains how to structure your code with proper indentation and how different code blocks are executed depending on the conditions provided. About IIT Madras' online Bachelor of Science programme IIT Madras offers four year BS programmes that aim to provide quality education to all irrespective of age educational background or location. The BS programme has multiple levels which provide flexibility to students to exit at any of these levels. Depending on the courses completed and credits earned the learner can receive a Foundation Certificate from IITM CODE (Centre for Outreach and Digital Education), Diploma(s) from IIT Madras or BSc/BS Degrees from IIT Madras. For more details Visit: https://www.iitm.ac.in/academics/study-at-iitm/non-campus-bs-programmes #python #programming #iitmadras #onlinelearning #datascience #coding #education #ifstatement #else #conditionalstatement #codingtutorial #beginnerprogramming #pythonforbeginners #avengers #pg13 #agecheck #codewithfun #programmingexample #pythonbasics #spyderide
