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 5

7. Write a program that appends the contents of one file to another. Have the program take the filenames from the user.

sa 12 cs chapter 5 / PythonCSIP CS IP

7. Write a program that appends the contents of one file to another. Have the program take the filenames from the user. Read More »

8. Write a program that reads characters from the keyboard one by one. All lower case characters get stored inside the file LOWER, all upper case characters get stored inside the file UPPER and all other characters get stored inside file OTHERS.

sa 12 cs chapter 5 / PythonCSIP CS IP

# Code f1 = open(‘LOWER.txt’, ‘w’) f2 = open(‘UPPER.txt’, ‘w’) f3 = open(‘OTHERS.txt’, ‘w’) c = True while c: c = input(‘Enter a character to write or False to terminate the program : ‘) if c is False: break elif c.islower(): # checks for lower character f1.write(c) elif c.isupper() # checks for upper character f2.write(c)

8. Write a program that reads characters from the keyboard one by one. All lower case characters get stored inside the file LOWER, all upper case characters get stored inside the file UPPER and all other characters get stored inside file OTHERS. Read More »

Post pagination
1 2 … 15 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.