Luk7z 0 Posted January 20 Report Share Posted January 20 (edited) Como faço para colocar uma condição em uma resposta dada pela entrada? Preciso definir essas variaveis VIP e Normal. Exemplo: class cliente: def __init__(self, VIP, Normal😞 self.VIP= VIP self.Normal= Normal x = 0 cliente = input('Qual o tipo de cliente? ') if cliente == VIP: x = 1 elif cliente == Normal: x = 0 else: x = 0 Edited January 20 by Luk7z Quote Link to post Share on other sites
Question
Luk7z 0
Como faço para colocar uma condição em uma resposta dada pela entrada? Preciso definir essas variaveis VIP e Normal.
Exemplo:
Link to post
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.