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 14

4. Write a program to perform sorting on a given list of strings, on the basis of length of strings. That is, the smallest-length string should be the first string in the list and the largest-length string should be the last string in the sorted list.

sa 11 cs chapter 14 / PythonCSIP CS IP

# Code def insertion_sort(arr): for i in range(1,len(arr)): key = arr[i] j = i-1 while j >= 0 and len(key) < len(arr[j]): # comparison on the basis of length arr[j+1] = arr[j] j -= 1 arr[j+1] = key return arr l = input("Enter a list of strings : ").split() # split() splits the input on […]

4. Write a program to perform sorting on a given list of strings, on the basis of length of strings. That is, the smallest-length string should be the first string in the list and the largest-length string should be the last string in the sorted list. Read More »

2. Find out the number of operations taking place in the codes given below. Both codes are 90% similar. Thus carefully determine the number of operations in each of these.

sa 11 cs chapter 14 / PythonCSIP CS IP

2. Find out the number of operations taking place in the codes given below. Both codes are 90% similar. Thus carefully determine the number of operations in each of these. Read More »

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