Skip to content
Pooja Bhatia Classes Hari Nagar
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
Pooja Bhatia Classes Hari Nagar

sa 12 cs chapter 1

5. Write a program that asks the user the day number in a year in the range 2 to 365 and asks the first day of the year – Sunday or Monday or Tuesday etp. Then the program should display the day on the day-number that has been input.

sa 12 cs chapter 1 / PythonCSIP CS IP

# Code x = int(input(‘Enter day number between 2 & 365 : ‘)) d = input(‘Enter first day of the year : ‘) l = [‘Sunday’, ‘Monday’, ‘Tuesday’, ‘Wednesday’, ‘Thursday’, ‘Friday’, ‘Saturday’] print(l[l.index(d) + x%7 – 1]) # index() finds the index of d in the list l, x%7 because days are same every 7 […]

5. Write a program that asks the user the day number in a year in the range 2 to 365 and asks the first day of the year – Sunday or Monday or Tuesday etp. Then the program should display the day on the day-number that has been input. Read More »

3. Find and write the output of the following python code :

sa 12 cs chapter 1 / PythonCSIP CS IP

3. Find and write the output of the following python code : Read More »

Post pagination
← Previous 1 … 4 5 6 … 19 Next →
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
  • We teach following classes
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship

Copyright © 2025 Pooja Bhatia Classes Hari Nagar | Powered by Pooja Bhatia Classes Hari Nagar.