#coding-challenge
Read more stories on Hashnode
Articles with this tag
Write a Python program to sort a given array in ascending order : a=[2,4,8,1,4,6] a.sort() print("The ascending order ",a) Output : The ascending...
Write a Python program to check whether a given string is a palindrome or not:- str=input("ENTER THE STRING : ") if str == str[::-1]: ...
Write a Python program to reverse a given string:- str=input("Enter the string : ") print('THE REVERSE OF THE STRING IS :- ',str[::-1]) Output...
Write a Python program to find the sum of all numbers between 1 and a given number:- n=int(input('Enter the number : ')) sum=0 for i in...
Question for DAY 1 : Write a Python program that accepts a number from the user and determines whether it is even or odd : n=int(input("Enter the...
In my previous blogs on the basics of python, I have discussed all the basic topics in detail: Basics of python-day-1: print statement Basics of...