Posts by Danilo Costa • 27 points
3 posts
-
0
votes1
answer42
viewsQ: How to show data in the template
I have this model: class template(models.Model): nome = models.CharField(max_length=30) is view: def home(request): dados = template.objects.all() return render(request,'index.html',…
-
2
votes2
answers2157
viewsQ: Create function hexadecimal and octal conversion function in python
Good evening, I’m trying to do two functions one to convert hexadecimal numbers into decimals and one to convert octal numbers into decimals, this is my code: def hexadecimalparadecimal(n): decimal…
-
0
votes2
answers303
viewsQ: How to convert a string to this encoding?
I am trying to convert text into a binary language, but it keeps leaving letters in the result, I would like to create a text according to the numbering that each letter received: a = 10000 c =…