Apuntes
strings
Contenido del apunte (1)
Página 1
Strings :
print('This is a string{}')
print('The {} {} {}'.format('fox','brown','quick'))
.format will insert these in the format you entered
.format
float formatting - allows you to adjust the width and precision of your floating point number.
float formatting follows --> value:width.precision f
print('His name is {} '.format(name))
OR CAN DO -->
print(f'Hello his name is {name}')
Learning about: Strings
https://github.com/Pierian-Data/Complete-Python-3-Bootcamp/blob/master/00-Python%20Object%20and%20Data%20Structure%20Basics/02-Strings.ipynbhttps://github.com/Pierian-Data/Complete-Python-3-Bootcamp/blob/master/00-Python%20Object%20and%20Data%20Structure%20Basics/02-Strings.ipynb
Información
- Descripción
- python study Apunte sobre strings, creado por Ryan Monaghan el 30/03/2019.
- Creado por
- Ryan Monaghan · mar 2019
- Actualizado
- 30 mar 2019
- Visitas
- 0
- Valoración