Skip to main content
← CoursesPython for Office WorkersModule 8 · PDFs & documentsJinja2 templating — HTML → PDF with WeasyPrintpredict44 / 50
💬 Discuss🧪 Playground+150 XP
Task
Given items = [{qty: 10, rate: 150}, {qty: 1, rate: 2500}], a Jinja2 expression {% for i in items %}{{ i.qty * i.rate }}|{% endfor %} renders to what string?

Keep going

🔮 Predict the output

Read the code carefully

What will the program print? Write here:

📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…