# Program to generate a random number between 0 and 9
# importing the random module
import randomprint(random.randint(0, 9))
# Program to generate a random number between 0 and 9
# importing the random module
import randomprint(random.randint(0, 9))
Python program to swap first and last element of a list
Write a Python program to test whether a number is within 100 of 1000 or 2000
Python program to accept a filename from the user and print the extension of that
Append and read in file handling in python
Python Program to find the ASCII value of the given character
Python Program to sort alphabetically the words form a string provided by the user
Python code to count the number of occurrences in list
Python Program to generate a random number between 0 and 9
Python code to find sum of elements in given array
Python program for Armstrong number
Write a Python program to display the current date and time
program to print the documents (syntax, description etc.) of Python built-in function(s)