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
Top 50 OOPS Interview Questions & Answers
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
Write a Java program to print the sum, multiply, subtract, divide and remainder of two numbers
Write a Java program to convert kilometers to miles.
Write a Java Program to Calculate electricity bill
Write a Program to Find largest and smallest number in an array in java
Write a Java program and compute the sum of the digits of an integer
Write a python program to counting item occurrences
Write a python program to Checking if a File Exists or Not ?
Write a Python program to print fibonacci series
Write a python program to calculate average using python *args ?
Python Program to Replace all Occurrences of ‘a’ with $ in a String
Java Quiz - 23
Java Quiz - 11
Java Quiz - 5
Java Quiz - 6
Java Quiz - 19