Answers for "len python 3"

9

len python

mystring = 'Hello'
#Counts the amount of letters in the string
len(mystring)	# = 5	

#Can also count the number of items in a list
mylist = ['Hello', 'Goodbye', 'Morning']
len(mylist)		# = 3
Posted by: Guest on October-14-2020
1

len python

len(s)
Posted by: Guest on June-29-2020
0

len python 3

len(list) # returns the length of a list, tuple, string, etc.
Posted by: Guest on June-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language