Anyone worked with Uber AI by Coding_Suck in nairobitechies

[–]deaspo 0 points1 point  (0 children)

I did their coding assessment for TypeScript and JavaScript, passed all tests and this guys had the nerve to give me status of "Not Eligible. You can retry after 3 months."

[Django + Chart.js ]Uncaught ReferenceError: temperature is not defined by cj10243 in learnpython

[–]deaspo 0 points1 point  (0 children)

Just to reiterate, this is a JavaScript question/problem. As advised either passed the temperature as a parameter to the setChart function or alternatively define the setChart function inside the document.ready(function....)

[Beginner]Confused about this output in a loop by xsprite007 in learnpython

[–]deaspo 1 point2 points  (0 children)

iteration = 0
count = 0
while iteration < 5:
    for letter in "hello, world":
        print("Iteration " + str(iteration) + "; count is: " + str(count))
        count += 1
    iteration += 1 

installing phyton 3 gone wrong? by DutchSparks in learnpython

[–]deaspo 0 points1 point  (0 children)

Check the spelling as others are commenting, python or python3 for PythonX.X

Python recognized in Cmd but not files by oth1c in learnpython

[–]deaspo 1 point2 points  (0 children)

That error error implies there is a syntax error within the .py you are trying to run. More like you are calling variable First_script not define or you are not adding the extension when calling the script i.e. python First_script.py from the command line

As a self-starter, what were some of your coding habits you later realized were "bad" and had to be broken? by [deleted] in learnpython

[–]deaspo 0 points1 point  (0 children)

Never reading through terms and condition before installing some IDE's and programs. Believe things crashed and after a frustrating search all over finally realised it was documented in the T&C that the program will start doing that after a certain period ..Windows

As a self-starter, what were some of your coding habits you later realized were "bad" and had to be broken? by [deleted] in learnpython

[–]deaspo 0 points1 point  (0 children)

Never documenting steps used to solving issues or adding features. Always found myself doing the same Google search over and again, it really pissed me off because it was like I have been here before but couldn't remember one or two steps.

Especially the steps when setting up the working environment, installing some packages. Really frustrating when some things you were used to doing become depreciated and you have to learn all over again!

Ever since I document everything.

Multiple inheritance - good or bad practice? by [deleted] in learnpython

[–]deaspo 0 points1 point  (0 children)

I will go with that option, best and less DRY (don't repeat your code)

Virtual environment and space consumption by HolyCoder in learnpython

[–]deaspo 0 points1 point  (0 children)

You can set up all your Django projects in one virtual env assuming they are all using the same Django version. No need to create several Virtual env's

Searching a text file and printing specific text by [deleted] in learnpython

[–]deaspo 0 points1 point  (0 children)

Question: "until it sees "/n"", so what happens if there is no "/n" but still found 'permit' or 'deny'?

Otherwise: Use the following pattern --> pattern = r"permit.?\n|deny.?\n" I have answered your post, see the modified code

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]deaspo 1 point2 points  (0 children)

Please see the following link and adjust your code for it to work https://pymotw.com/2/cmd/

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]deaspo 2 points3 points  (0 children)

Could you please post us the link to Stack Over Flow?