summaryrefslogtreecommitdiff
path: root/progs/a601.py
blob: e519c4b47f840cd39106c604d0da968fee829781 (plain)
1
2
3
def number_of_substrings(str): 
	str_len = len(str); 
	return int(str_len * (str_len + 1) / 2);