Posts by Bernardo Lansing • 121 points
9 posts
-
0
votes0
answers26
viewsQ: Vscode compiles and debugs but does not execute C programs
After configuring Visual Studio Code to compile and debug C, I am unable to run the code. A . exe that works properly, but for reasons of practicality, I wish the output and input of data to be…
-
0
votes0
answers27
viewsQ: Pointer matrix with no type and variable size in C
I am creating a game for my college work and need to read a txt file to build a level (phase) of the game. The txt example can be accessed here: https://pastebin.com/f778Ucxa. The dash represents an…
-
3
votes1
answer85
viewsQ: Replace string_concat() with equivalent
I am a beginner in Python and accepted to participate in a more or less old project, which was using Python 2.7 so far. At the beginning of the year, this version was deprecated and now I can’t…
-
1
votes0
answers45
viewsQ: Vscode terminal with improper encoding
I’m using Visual Studio Code for my C classes, but I’m really bothering myself with the terminal. He’s using some encoding that doesn’t admit accents and it’s compromising the visualization of my…
-
0
votes3
answers575
viewsA: Construct a program to read positive integer n and print all primes in the range [2, n]
The ideal would be to separate the task into two functions, one that receives a number n and returns True if he is cousin and False otherwise; and another function that also receives the same number…
-
-1
votes1
answer34
viewsQ: Set paragraph as wide as possible
I’m trying to perfectly fit a paragraph p in a list item li to make a header with options menu (same as the site python.org/downloads, that I am recreating to practice), being the text of each of…
cssasked Bernardo Lansing 121 -
-1
votes1
answer37
viewsQ: Bugle margins in CSS
I’m trying to put an edge on an image, but the result is that the margin extends across the horizontal of the page, as shown in the print. The idea is that the margin is around the image and its…
-
2
votes1
answer2915
viewsQ: 'Nonetype' Object is not subscripteble in Python
I have an exercise in defining a class Triangulo and a method retangulo(), who will return True if the object is a rectangular triangle. I always liked to use lists to solve my problems, so I wrote…
pythonasked Bernardo Lansing 121 -
4
votes3
answers170
viewsQ: Remove the brackets from the Sorted() function
I was creating a quadratic function calculator and wanted to lay down roots in the ascending order. Searching, I arrived at the function sorted(). raiz1 = round((-b + math.sqrt(delta)) / (2 * a), 2)…
pythonasked Bernardo Lansing 121