FOR - revision


Good Morning Dear boys

Today we will sum up the concept of FOR loop.
-----------------------------------------------------------------------------------------
The Google meet link for today's class is:


--------------------------------------------------------------------------------------------------------

By the end of this session, you will be able to:

  • Understand and apply the concept of FOR loop
  • Apply the concept learnt- For and predict the output in given situations
  • create appropriate programing code to solve the given questions
--------------------------------------------------------------------------------------------------------------

Following problem was shared with you in the last session:
Write a program in python to print the first 10 multiples of 5.

For this question 

print("The Table of 5 is as follows:")
for x in range (1, 11, 1):
  print("5 x ",x,"=",5*x)



The output of the above problem is:


Let us make changes in the above program to get Multiplication Table of 2 and 3
during this class only. All boys are expected to share coding in the comment section


----------------------------------------------------------------------------

Comments

  1. Good morning mam
    -Aaron David

    ReplyDelete
  2. Write Python code to accept the number from the user whose multiplication table has to be printed and then print the table.

    ReplyDelete
  3. val =(input("enter the number ")
    for val in range (1,11)
    print (5,"x",val,"=",5*val

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. V=input("input the number for its table" )
    for x in range (1, 11,):
    print(V,"x",x,"=",V*x)

    ReplyDelete
  6. Good Morning Ma'am

    ReplyDelete
  7. good morning ma'am
    Artham Kalyani
    X-A

    ReplyDelete

Post a Comment

Popular posts from this blog

HOLIDAY HW