loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.02601951845502204","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"Y2xhc3MgU2VycGUoKToKCglkZWYgX19pbml0X18oc2VsZiwgbm9tZSwgc3ViZ3J1cG8sIHZlbGVubyk6CgkJc2VsZi5ub21lID0gbm9tZQoJCXNlbGYuc3ViZ3J1cG8gPSBzdWJncnVwbwoJCXNlbGYudmVsZW5vID0gdmVsZW5vCgoJZGVmIHF1ZW5fc29uKHNlbGYpOgoJCXByaW50ICgnT2xhLCBzb24gYSAnLCBzZWxmLm5vbWUsICcgZSBwb2xvIHRhbnRvIHNvbiB1biAnLCBzZWxmLnN1YmdydXBvKQoJCglkZWYgdmVsZW5vc2Eoc2VsZik6CgkJaWYgc2VsZi52ZWxlbm86CgkJCXByaW50KCdTb24gdmVsZW5vc2EuJykKCQllbHNlOgoJCQlwcmludCgnVHJhbnF1aSwgbm9uIG1vcmRvLi4ubW9pdG8nKQoKc2VycGUxID0gU2VycGUoIkNvYnJhIFBpY3VkYSIsICJSZXB0aWwiLCBUcnVlKQpzZXJwZTIgPSBTZXJwZSgiUGl0w7NuIiwgJ1JlcHRpbCcsIEZhbHNlKQoKc2VycGUxLnF1ZW5fc29uKCkKc2VycGUxLnZlbGVub3NhKCkKc2VycGUyLnF1ZW5fc29uKCkKc2VycGUyLnZlbGVub3NhKCkKCicnJ0PDk0RJR08gUEFSQSBVVElMSVpBUiBOT1MgRVhFUkNJQ0lPUwoKbGlzdGFfc2VycGVzID0gW3NlcnBlMSxzZXJwZTJdCgpmb3IgaSBpbiBsaXN0YV9zZXJwZXM6CglpLnF1ZW5fc29uKCkKCWkudmVsZW5vc2EoKQoJaWYgaS52ZWxlbm86CgkJcHJpbnQgKCdDb2lkYWRvIGNvbm1pZ28hJyknJyc="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class Serpe():

	def __init__(self, nome, subgrupo, veleno):
		self.nome = nome
		self.subgrupo = subgrupo
		self.veleno = veleno

	def quen_son(self):
		print ('Ola, son a ', self.nome, ' e polo tanto son un ', self.subgrupo)
	
	def velenosa(self):
		if self.veleno:
			print('Son velenosa.')
		else:
			print('Tranqui, non mordo...moito')

serpe1 = Serpe("Cobra Picuda", "Reptil", True)
serpe2 = Serpe("Pitón", 'Reptil', False)

serpe1.quen_son()
serpe1.velenosa()
serpe2.quen_son()
serpe2.velenosa()

'''CÓDIGO PARA UTILIZAR NOS EXERCICIOS

lista_serpes = [serpe1,serpe2]

for i in lista_serpes:
	i.quen_son()
	i.velenosa()
	if i.veleno:
		print ('Coidado conmigo!')'''