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

2 BE C

11. Write a program to sort a dictionary’s keys using Bubble sort and produce the sorted keys as a list.

sa 12 cs chapter 2 / PythonCSIP CS IP

11. Write a program to sort a dictionary’s keys using Bubble sort and produce the sorted keys as a list. Read More »

4. Write a program that rotates the elements of a list so that the element at the first index moves to the second index, the element in the second index moves to the third index, etc., and the element in the last index moves to the first index.

sa 12 cs chapter 2 / PythonCSIP CS IP

# Code l = input().split() # input().split() returns the list l = l[len(l)-1:] + l[:-1] # last element being added at the start with the list slice that doesn’t contain the last element print(l)

4. Write a program that rotates the elements of a list so that the element at the first index moves to the second index, the element in the second index moves to the third index, etc., and the element in the last index moves to the first index. Read More »

Post pagination
← Previous 1 2 3 4 … 7 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.