while loop - Mode of a List - Python -


I am trying to write my own function which finds mode in the list, But this sptter occurs when there are multiple modes to help me add something to a function, which is related to the case in many ways. thank you in advanced!

  DEIF Modellist (AIM): subscript = 0 while subscript & lt; Lane (nums): If nums.count (nums [subscript]) & gt; Nums.count (nums [subscript + 1]): Return is "mode" + str (nums [subscript]) + "." Other: subscript + = 1 print mode list ([2,4,6,8,6,8])    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -