Day -15
So far, I have discussed the basics of python.
In my blogs, I have tried to cover all the basics concept of python.
Basics of Python -
Print Statement
Basics of Python-2 -
Data Types
Basics of Python-3 -
Conditional Statement
Basics of Python-4 -
List
Basics of Python-5 -
String
Basics of Python-6 -
Tuple
Basics of Python-7 -
Set
Basics of Python-8 -
Dictionary
Basics of Python-9 -
Loops
Basics of Python-10 -
For loop
Basics of Python-11 -
Pattern Printing
Basics of Python-12 -
While Loop
Basics of Python-13 -
Function
Basics of Python-14 -
OOPs Concept
These are the most common python questions for basics :
Write a program to print "Hello, World!" on the console.
Write a program to prompt the user for their name and then print a greeting using their name.
Write a program to calculate the sum of two numbers input by the user.
Write a program to calculate the factorial of a number input by the user.
Write a program to check if a number input by the user is even or odd.
Write a program to check if a number input by the user is positive, negative, or zero.
Write a program to check if a given string is a palindrome or not.
Write a program to find the largest of three numbers input by the user.
Write a program to find the smallest of three numbers input by the user.
Write a program to calculate the average of three numbers input by the user.
Write a program to swap two variables without using a third variable.
Write a program to print the first 10 Fibonacci numbers.
Write a program to print the multiplication table of a number input by the user.
Write a program to check if a number is prime or not.
Write a program to find the factorial of a number using recursion.
Write a program to find the sum of the digits of a number.
Write a program to find the reverse of a number.
Write a program to count the number of vowels in a given string.
Write a program to count the number of words in a given string.
Write a program to find the length of the longest word in a given sentence.
Write a program to check if a given number is a palindrome or not.
Write a program to find the sum of the first n natural numbers.
Write a program to find the sum of the digits of a number using recursion.
Write a program to find the largest element in an array.
Write a program to find the second largest element in an array.
Write a program to find the smallest element in an array.
Write a program to find the second smallest element in an array.
Write a program to sort an array in ascending order.
Write a program to sort an array in descending order.
Write a program to reverse an array.
Write a program to remove duplicates from an array.
Write a program to check if two strings are anagrams or not.
Write a program to find the common elements in two arrays.
Write a program to find the difference between two arrays.
Write a program to merge two arrays.
Write a program to find the frequency of each element in an array.
Write a program to find the missing number in an array of integers.
Write a program to find the maximum subarray sum in an array.
Write a program to find the first non-repeating character in a string.
Write a program to check if a given string contains only digits.
Write a program to check if a given string contains only alphabets.
Write a program to find the ASCII value of a character.
Write a program to convert a decimal number to binary.
Write a program to convert a decimal number to an octal.
Write a program to convert a decimal number to hexadecimal.
Write a program to convert a binary number to a decimal.
Write a program to convert a binary number to an octal.
Write a program to convert a binary number to hexadecimal.
Write a program to convert an octal number to a decimal.
That's all for the Basics of Python. Here I am ending Basics of Python (day 1 to day 15) Blogs.
Happy Learning :)