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 11 cs chapter 8

1. Write a Python script that asks the user to enter a length in centimetres. If the user enters a negative length, the program should tell the user that the entry is invalid. Otherwise, the program should convert the length to inches and print out the result. There are 2.54 centimetres in an inch.

sa 11 cs chapter 8, sa 11 ip chapter 5 / PythonCSIP CS IP

# Code cm = int(input(‘Enter length in cm : ‘)) if cm < 0: print(‘invalid entry’) else: print(cm/2.54, ‘inches’)

1. Write a Python script that asks the user to enter a length in centimetres. If the user enters a negative length, the program should tell the user that the entry is invalid. Otherwise, the program should convert the length to inches and print out the result. There are 2.54 centimetres in an inch. Read More »

14. Which of the following Python programs implement the control flow graph shown ?

sa 11 cs chapter 8, sa 11 ip chapter 5 / PythonCSIP CS IP

Ans : (b)

14. Which of the following Python programs implement the control flow graph shown ? Read More »

Post pagination
← Previous 1 … 30 31 32 … 38 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.