A pizzeria plans to introduce a new feature to its site. It will allow customers to add three additional toppings to their order: bacon, salami, and olives. Select the appropriate widget for this task. Create a form where the customer can select one or more toppings.
Form widgets
New features
Report a typo
Sample Input 1:
TESTSample Output 1:
Write a program in Python 3
from django import forms
TOPPINGS = [
('bacon', 'Bacon'),
('salami', 'Salami'),
('olives', 'Olives'),
]
class ToppingsForm(forms.Form):
toppings = ...
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.