I'm learning how to program in ruby, my main language is python, so I was hesitant if there is any equivalent to try and except for python in ruby:
try:
print("No hubo errores")
except:
print("Si hubo errores")
Is there something si...
As you can see I'm using Anaconda, and in that python environment v. 3.6.6.
Just run "import matplotlib.pyplot" the application "breaks". I have searched in StackOverflow anglosajon, but nothing useful. I think it's about version problems....
I was solving something and I found this test and I do not understand well what is happening.
Doubt is, it shows me 3456'7 'Why does 7 appear on the exit if I am delimiting [3-6] ?
What is prevailing over the limit that I put in brac...
I would like to understand the flow of these loops for at each round, since according to what I understood of matrix multiplication and according to the loop: in the first round
i, j and k
would have a value of zero, therefore in...
I would like to understand what is the operation and the creation of "keys" or "lambdas" that can condition the max () or min () functions, applied to lists, dictionaries or tuples.
I have a .json with the following structure:
[
{
"Country": "Spain",
"Age": "14"
},
{
"Country": "China",
"Age": "16"
},
]
I try to read it with the following method:
import json
from pprint import pprint
with ope...
What I want to do is, be able to use the first name of the user that is registered in the database using the User model that django has by default, my idea is to use its name as a sort of selector with a foreign key, so that when I save my docum...
I have the following serializer:
class PerfilSerializer(serializers.ModelSerializer):
usuario = UserSerializer()
seguidores = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
looks = LookSerializer(many=True, read_only...
I have an algorithm in which it is stated as such and I have to execute certain commands in python as the algorithm raises so I can not modify, how can I raise the following sentence?
where An is an angle, and everything with the root...