Ayúdanos a dar forma a GoConqr. ¿Qué deberíamos añadir?

Fichas

Basic Python - Print Formatting

Rebecca Noel Python Basics none Inglés 5,0Valoración media 5,0 de 5 (2 valoraciones) 8 fichas

Fichas del conjunto (8)

  1. 1What is %s used for?To format strings into your print statements.
  2. 2Floating point numbers use the format %n1.n2f where n1 is ____ and n2 is _____....the total min. number of digits the string should contain...
    ...the total numbers to show past the decimal point...
  3. 3What method does %s use?str()
  4. 4What method does %r use?repr()
  5. 5T/F?: When listing several strings to place with a string, order doesn't matter.False. Strings must be written in the order in which they should appear, unless you use the .format() method.
  6. 6The .format() method is the preferred format method when:- inserting a string
    - inserting a single value string into multiple places
    - formatting several objects
  7. 7T/F?: Python 3 uses the print() function, not the print statement.True
  8. 8After you import the future Python 3 print module the only way to revert back the Python 2 functionality is to...restart Python or start a new notebook.

Información

Descripción
Print Formatting topic using Python 2
Creado por
Rebecca Noel
Visitas
231
Etiquetas
pythonprint formatting
Valoración
Valoración media 5,0 de 5 (2 valoraciones)

Más sobre Python Basics

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué deberíamos añadir?