ZtM_Sec3Vid38_builtInFunctions_Methods

Run Settings
LanguagePython
Language Version
Run Command
#built-in functions for python 3.11 #https://docs.python.org/3.11/library/functions.html# var = '0123456789' #The len() function returns the overall length of a string, aka how many values does it hold #EXAMPLE print(f'the var varialbe goes from 0 to 9, thus it is {len(var)} values long.') #you can also use it to slice from x to the end, if you put it in the 2nd slot of the string slicing formula (start:end:stepover) print(f'\nthis is an example of using the len() function to print a string from X to the end of it. \nlen() is positioned in the 2nd slice slot, causing the output to be {var[0:len(var)]}')
Editor Settings
Theme
Key bindings
Full width
Lines