O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Python

Андрей Бармалей Inglês 18 flashcards

Flashcards do conjunto (18)

  1. 1extend()?
  2. 2dict()?
  3. 3def()?
  4. 4list()?
  5. 5lower()?
  6. 6hasattr(obj, '__call__')to detect if a variable is a function
  7. 7A tuple is immutableYes
  8. 8A list is mutable.Yes
  9. 9A tuple is mutableNo
  10. 10A list is immutable.No
  11. 11type(0,)tuple
  12. 12A tuple is an immutable data structure in Python. Can it hold mutable objects?Yes
  13. 13enumerate?
  14. 14If a list is mutable in Python, can it hold immutable objects?Yes
  15. 15for i in range 1The for loop is commonly used to repeat some code a certain number of times. This is done by combining for loops with range objects.
  16. 16insert()?
  17. 17list(range(3, 8))?
  18. 18Iterating through a list using a while loop requires quite a lot of code, so Python provides the for loop as a shortcut that accomplishes the same thing.words = ["hello", "world", "spam", "eggs"]
    for word in words:
    print(word + "!")

Informações

Descrição
FlashCards sobre Python, criado por Андрей Бармалей em 18-02-2019.
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?