Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
In round function what is the use of _100, _104, etc.
I know that round(10.121, 1) will round the value up to 1 decimal place.
But the purpose of _104 is not getting.
I've attached two screenshots for reference.
In IPython, _109 means the output of the 109th cell execution. This implies that while you were running your IPython notebook (through VS Code), at cell execution 109, you received an output of 103. The reason why Bram above can't run print(_109) on his end is that he was either running it in a Python file/interpreter, or executing it in a fresh notebook where he hasn't run 109 cells yet, and thus the variable _109 did not exist.
Check this answer for more information: https://stackoverflow.com/a/27952661/2327379
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 days ago.
Improve this question
I was just writing code and then I went to my mouse and flinched clicking on the code I think I might of searched a variable or something but now it looks like this
I have pocked around the UI and looked at the documentation but its getting late and it would be better if someone just told me what the hell to do at this point
what it looks like
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
https://github.com/AZHenley/teenytinycompiler.git
Can you get this to run I got it from this website:
http://web.eecs.utk.edu/~azh/blog/teenytinycompiler1.html
I followed this tutorial and it failed to load the source file.
I am new to python.
this is a screenshot of when I ran the python project
You never pass in the source file. The command you have now only starts the TeenyTiny compiler. You can pass in the source file as follows.
"C:/Users/Ackeem/AppData/Local/Programs/Python/Python39/python.exe" "C:/Users/Ackeem/Desktop/teenyTIny Compiler/teenytinycompiler/part2/teenytiny.py" "C:/Users/Ackeem/Desktop/teenyTIny Compiler/teenytinycompiler/part2/hello.tiny"
Your code did run but there were no parameters passed to it.
sys.argv is the object that holds parameters being passed.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I have a dataframe called propertydf.
When I run my code I get a very vague error:
propertydf = propertydf[propertydf['fixed_price'].notna()].copy()
^
SyntaxError: invalid syntax
I checked the code and the dataframe variable has changed color to blue? But not all of them.
I also noticed some other variables are suddenly blue, such as year and date.
I think this is causing the error. How can I fix it?
In the line propertydf['fixed_price'] = fix_price((propertydf.iloc[:,[4]]) you open two parenthesis but only close one (It's above the line that throws the error).
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
It's saying there's a syntax error (seems simple enough) but I've double-checked the video (and my brain). I don't see why it would be saying that.
Been following this tutorial and taking notes to a T (if I need to include more code let me know).
I defined "run_test" and am entering the parameters in question. Help?
You have extra opening parenthesis before ‘str(len(...))’
There should be a closing brackets for str in print statement ')' , add this and your program will work
If i am not wrong, you haven't defined the list of questions yet. If you have defined your list of questions it is probably a typing error in your code. If there is the full code under the tutorial you are doing then i would compare my code to the code from the tutorial.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
I am currently following through a book (Python Crash Course), and have just been introduced to the '==' equality operator.
In the book, it shows setting a variable and checking whether it is equal to itself (using ==). See below.
Also tried numerical comparisons and having the same issue as outlined below.
car = "bmw"
car == "bmw"
This is providing no output and PyCharm is telling me 'car == "bmw" has no effect. Book is telling me it should be responding "True" as I am checking the variable which I have literally JUST set.
Try:
car = "bmw"
print(car == "bmw")
Or type your code directly in the console. Just running your script like that won’t produce anything, because you don’t do anything with the comparison.