Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


Code to shuffle or randomize the items from list in Python?
Question Posted on 24 Oct 2021

Home >> Python Programming >> Python Questions >> Code to shuffle or randomize the items from list in Python?




Code to shuffle or randomize the items from list in Python?
To shuffle or randomize the items in list we use function Shuffle() to get data randomaly from list. Below is thec ode to do that in Python.

List=['Java','asp.net','Python','SQL Server','Big Data']
shuffle(List)
Print(List)

And output of above code is given below
['SQL Server','asp.net','Java','Big Data','Python']
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Program to check sequence is palindrome or not?
Can you define Memory Management in Python?
Can you define dictionary in Python?
Can you please mention some builtin Data Types in Python?
Write a code to read JSON file and print data of JSON in Python?






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |