Posts by Dhonrian • 25 points
4 posts
-
0
votes1
answer522
viewsQ: Assign values to a struct array in Golang
I’m starting to learn go and need to populate the different structs with their values. I thought about creating an array of structs and trying to use a for to fill the fields but give an error of…
-
-1
votes1
answer3786
viewsQ: How to press the button of a python website
I’m making a webscrapping of the club cipher site and picking up the most accessed songs of a genre. The code works normal but the way the page is made only appear the first 100 songs, to show the…
-
0
votes1
answer96
viewsQ: Pointers with argc and argv
I have the following code to run on the terminal. It checks if the first argument is a '+' and then sums up the following numbers. int main(int argc, char *argv[]) { int i, soma; char oper; oper =…
-
1
votes1
answer948
viewsQ: How to add up the values of an index?
I am new in python and need to make a program that add the digits that belong to the same position of a list, for example: Lista = ['22659', '387685', '89546'] The result of the list sum[0] would be…