def myfun(): list1 = ['LOVE', 'HATE', 'WAR', 'PEACE', 'PEACE'] set1 = {word.lower()for word in list1} print(set1) if __name__=="__main__": myfun()
{'love', 'war', 'hate', 'peace'}
Java Interview Questions
Python Interview Questions
Oracle Interview Questions
100 Most Asked Java Interview Questions and Answers
HR Interview Questions and Answers
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
Write a Java program that takes two numbers and display the product of two numbers
Write a Java program to print the sum, multiply, subtract, divide and remainder of two numbers
Write a Program to Find largest and smallest number in an array in java
Write a Java program to convert a decimal number to binary numbers
Write a java Program to check the given number is Palindrome or not
Write a python program to print most frequent letter in a string
Write a Python program sort a list in descending order
Write a Python Program to find the factorial of a number using recursion
Write a python program to find absolute value of a number in the list
Write a Python program to print fibonacci series
Java Quiz - 12
Java Quiz - 10
Java Quiz - 15
Java Quiz - 4
Java Quiz - 7