Free Online Tutorials ==>> Machine Learning || Python Programming || DBMS || OOPs using C++ || DSA || Java Programming || Linux/Unix || C Programming
Go to your University || Python Lab || DSA Lab || AI & Machine Learning Lab || Linux Lab || OOPs Lab || DBMS Lab || JAVA Lab ||| Free Online Tutorials ||| 
companies for Campus Placement || Logical Reasoning || Quantitative Aptitude || General English || Technical-MCQ and Interview Questions || HR Interview Questions
0 like 2 dislike

1 Answer

0 like 0 dislike
by Goeduhub's Expert (7.6k points)
edited by
Best answer

Ques. Write a Python program to find the list of words that are longer than n from a given list of words

Answer : 

Program : 

str=input("enter strings : ")

a=str.split(" ")


n=int(input("enter value of n "))

for i in a:

    if (len(i)> n) :


print("list of words : ",b)

Output :  

enter strings : Goeduhub provide Summer, winter, regular training in Artificial Intelligence(AI), Machine Learning(ML), Deep Learning(DL), Python, Big Data Hadoop, Internet of Things(IoT), Cloud Computing, Salesforce, Embedded Systems & Robotics, Mobile Apps Development, Industial Automation(PLC-SCADA),AUTOCAD, MATLAB, Programming (PHP, Java, C, C++), Networks & Database.

enter value of n 7

list of words :  ['Goeduhub', 'training', 'Artificial', 'Intelligence(AI),', 'Learning(ML),', 'Learning(DL),', 'Internet', 'Things(IoT),', 'Computing,', 'Salesforce,', 'Embedded', 'Robotics,', 'Development,', 'Industial', 'Automation(PLC-SCADA),AUTOCAD,', 'Programming', 'Networks', 'Database.']

  Realize your learning potential with courses starting at ₹ 420
 Placements:   List of companies | Logical Reasoning Questions | Quantitative Aptitude Questions | General English Questions | Technical-MCQ and Interview Questions
 Online Free Training:  MACHINE LEARNINGPython Programming | Database Management System(DBMS) | Object Oriented Programming(OOPs) using C++ | Data Structures and Algorithms(DSA) | Java Programming | Linux/Unix | C Programming
Exams: List of Exams After Graduation | List of Engineering Entrance Examinations (UG/PG) | JEE Main | JEE Advanced | GATE | IES | ISROList of PSUs
 Download Previous Year Papers For:  GATE | IES | RAJASTHAN TECHNICAL UNIVERSITY (RTU-Kota)RPSC Technical Exams | ISRO
About Us | Contact Us   Social::   |  |