Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

giving number of letter in python



'''for i in range(1,100,50): #it means count from 1 to 100 and increase by 50
    print(i)'''
def find_short(s):
    li = list(s.split(" "))
    sc=[]
    for i in range(0,len(li)):
        sc.append(len(li[i]))
    return min(sc)


print(find_short("bitcoin take over the world maybe who knows perhaps"))
Comment

PREVIOUS NEXT
Code Example
Python :: import sentence transformers 
Python :: python math exp 
Python :: Create A Template In Django 
Python :: Python DateTime Date Class Syntax 
Python :: python version of settimout 
Python :: Exception in thread 
Python :: python tuple example 
Python :: python increment by 1 
Python :: print() function in python 
Python :: remove timezone from a datetime object? 
Python :: how to convert string to int in python 
Python :: tensorflow data augmentation 
Python :: longest palindromic substring using dp 
Python :: Accessing elements from a Python Dictionary using the get method 
Python :: python : a counter 
Python :: how to store categorical variables in separate dataframe 
Python :: daraja mpesa 
Python :: how to earn money as a python developer 
Python :: test pypi 
Python :: imshow of matplotlib 
Python :: count pairs with given sum python 
Python :: split rows into multiple columns in pandas 
Python :: python new 
Python :: what is self 
Python :: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997) 
Python :: python transpose 
Python :: sort a dataframe 
Python :: np.divide 
Python :: groupby as_index=false 
Python :: interpreter in python 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =