athanniel04
Honorary Poster
- Joined
- Apr 9, 2020
- Posts
- 322
- Reaction
- 76
- Points
- 167
Write an interactive python program to append a new item to the end of the array.
use input() function.
2. Write an python program to generate 5 random integer elements of values 1-10 array, and print this.
use random.randint() to get the elements.
3. Write an python program to to sort the elements of an array in ascending order, print this and reverse
order.
use random.randrandint() to generate the elements to sort.
use the algorithm:
1. Generate 5 random integers of values 1-10.
2. Displaying elements generated.
3. Sort the array of elements in ascending order and display.
4. Sort in descending order using reverse function and display.
4. Write a Python program to count the number of each character of a given text of a text file.
import collections, ppri
use input() function.
2. Write an python program to generate 5 random integer elements of values 1-10 array, and print this.
use random.randint() to get the elements.
3. Write an python program to to sort the elements of an array in ascending order, print this and reverse
order.
use random.randrandint() to generate the elements to sort.
use the algorithm:
1. Generate 5 random integers of values 1-10.
2. Displaying elements generated.
3. Sort the array of elements in ascending order and display.
4. Sort in descending order using reverse function and display.
4. Write a Python program to count the number of each character of a given text of a text file.
import collections, ppri