Archived
Les contextes Django (django.template.Context) sont la version web des contextes python utilisables avec le mot-clef with. (Une seule bonne réponse possible)
-1
Community Evaluations
Vincent Cotro
18/10/2021
Bonjour Adrien, c'est plus une question de culture générale. N'hésite pas à proposer une autre question pour la remplacer si elle ne te parait pas cohérente !
Adrien
19/10/2021
Django reste une librairie spécifique web que tous les développeurs python ne connaissent pas. Si le but est de de poser une question sur with, peut être quelque chose comme "en Python, le mot clef "with" sert à:" avec un QCM ou la bonne réponse serait "créer un contexte temporaire", et plusieurs réponses fausses a côté.
Vincent Cotro
19/10/2021
Oui je comprends, je t'avoue que je n'ai pas beaucoup de connaissances en Python et le contributeur initial n'est plus disponible. Si tu proposes une question avec notre builder je serai content de la remplacer : https://welovedevs.com/app/fr/test-question-creator
6
Why is the output of the following code undefined?
```
def f(n):
return n + 1
f(n)
```4
In Python, what is the output of the following code? `valueA = 10; valueB = 10; valueA is valueB`5
Change the value of a nested list element in Python4
Write a Python code that will wait for 40 seconds.5
Write a Python program to open a file in binary mode and write a string to it.5
What is the output of the following code?
```
import asyncio
async def read_data():
with open('data.txt', 'r') as f:
data = f.read()
return data
async def main():
data = await read_data()
print(data)
if __name__ == '__main__':
asyncio.run(main())
```5
In Python, which of the following statements are true about the keyword 'with':