TC5001
  • Member for 1 year, 8 months
  • Last seen more than 1 year ago
  • U.S.A.
How to enter Jinja variables as values in my tags
0 votes

Thank you, I already found the answer. Dinocodersaurus, that was a typo, and I already had included the closing ' in my actual code. The solution was to simply add spaces, so it was value = {{ stock['...

View answer
Pset7 Houses, what does my error message mean?
Accepted answer
0 votes

I have figured it out, thank you DinoCoderSauraus. It was because to use a variable in db.execute, I needed to use the f, for format. I needed to write, db.execute(f"INSERT INTO students (first, ...

View answer
Functions returning a value?
0 votes

You could always use a variable or a list. For example, you could have a variable called "2dreturn" and then have the block set that variable to what you want the function to return. In pseudocode, ...

View answer
pset2 readability. im getting 8 instead of 7th gread
0 votes

The same problem happened to me. I fixed it using floor() instead of round(). Floor is like round, but it always rounds down. This worked for me, and I hope it works for you too.

View answer