Separate even and odd numbers
Write a Python program to separate the even and odd numbers of a list. Step-by-step explanation, colour-coded code and real output.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Write a Python program to separate the even and odd numbers of a list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the smallest and largest elements of a list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the product of all elements in a list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to calculate the sum of all elements in a list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to combine two lists. Step-by-step explanation, colour-coded code and real output.
Write a Python program to calculate the square of each number in a list. Step-by-step explanation, colour-coded code and real output.
100 NumPy programs with solutions: arrays, matrices, comparisons, reshape, sort, unique, NaN handling, statistics and rounding, each explained.
95 pandas programs with solutions: Series, DataFrames, filtering, sorting, groupby, merge, string methods and missing values, each explained.
70 Python tuple programs with solutions: create, index, unpack, sort lists of tuples, convert to list, dict and string, and more, each explained.
38 Python file handling programs with solutions: read, write, append, count words and lines, copy, compare, seek and tell, each explained step by step.
64 Python if-else practice programs with solutions: grades, leap year, vowels, triangles, discounts, bills and more, each explained line by line.
40 Python basic programs for beginners with solutions: arithmetic, formulas, area, interest, factorial, prime, palindrome and more, each explained.
Take free timed mock tests with answers and explanations.