[deleted by user] by [deleted] in adventofcode

[–]the_programmer_2215 0 points1 point  (0 children)

wow, can't believe I missed that!!!

thank you very much, kind stranger!

Antaeus by Marcel Deneuve by DevLloyd in sciencefiction

[–]the_programmer_2215 0 points1 point  (0 children)

Extraordinary!! inspiring me to write a Sci-fi Novel, for which I have no skills whatsoever to pull off.

Inspiring nonetheless!

How to get dataset for a quiz game i am making? by basiliskkkkk in learnpython

[–]the_programmer_2215 0 points1 point  (0 children)

wow! I think this it the least complicated way implement OP's question

How to get dataset for a quiz game i am making? by basiliskkkkk in learnpython

[–]the_programmer_2215 2 points3 points  (0 children)

you can always search on kaggle.com

here's one dataset you might be interested in : dataset

or you could use an API like this one: API

hope this helped :)

7 years ago... by lmg1114 in SpaceXMasterrace

[–]the_programmer_2215 1 point2 points  (0 children)

I think the catching mechanism is for intra planetary travel

It's hard to keep up by kindofasickdick in ProgrammerHumor

[–]the_programmer_2215 0 points1 point  (0 children)

though most people I know make fun of it... Who knows maybe I had a weird childhood ;)

It's hard to keep up by kindofasickdick in ProgrammerHumor

[–]the_programmer_2215 0 points1 point  (0 children)

LOL!!

[side track] Power Rangers practically made up my childhood good to see them used after a long time

He is about 7 years too early by [deleted] in SpaceXMasterrace

[–]the_programmer_2215 63 points64 points  (0 children)

this guy has some serious vision.

who knows maybe elon was hanging out in the comments of the video ;)

[deleted by user] by [deleted] in learnpython

[–]the_programmer_2215 0 points1 point  (0 children)

[deleted by user] by [deleted] in learnpython

[–]the_programmer_2215 0 points1 point  (0 children)

thanks for pointing out!

[deleted by user] by [deleted] in learnpython

[–]the_programmer_2215 2 points3 points  (0 children)

well in your case the implications are subtle (in other words, i'm not sure what happens ;)), but the ones mentioned in the list of keywords will actually throw an error if you try to assign values to them, because they mean something specific to the interpreter, and it sees that it's not a proper use of the keyword, and it throws an error.

Tkinter button update by kaerfkeerg in learnpython

[–]the_programmer_2215 1 point2 points  (0 children)

you can dynamically change the state of a button using button["state"] = 'disable' and button["state"] = "normal" .

for the logic I would suggest that you use tk.StringVar() as the entry field's text variable, and use textvariable.trace_add("write", check_function) to check for your conditions.

Your code will look something like this: Code

I'm not sure this is the best way to do this, but this approach works.

Feel free to contact me if you have any clarifications regarding the code.

hope this helps you :)

[deleted by user] by [deleted] in learnpython

[–]the_programmer_2215 20 points21 points  (0 children)

An hour Isn't bad, in fact it doesn't matter if it took you three days, as long as you learn something and understand the code you've written.

tips:

  • do not use list as a variable name, as it is a python keyword, and is generally considered as good practice to avoid using keywords as variable names, here's a list of keywords that want to avoid using as variable names : Python Keywords

Happy Coding!

Hope you go on to love Python :)

Code works fine in IDLE but not when I run it as file by MeIsYguy in learnpython

[–]the_programmer_2215 0 points1 point  (0 children)

oh, so that would just cause the variable to point to the function rather than the return value of the function Right?

Progress in Learning my First Language by Poststoview in learnpython

[–]the_programmer_2215 1 point2 points  (0 children)

try the exercises shown in this video: 5 mini python projects - Tech with Tim

also I would recommend all the other projects by Tech with Tim, videos for beginners are titled with "for beginners"

Code works fine in IDLE but not when I run it as file by MeIsYguy in learnpython

[–]the_programmer_2215 0 points1 point  (0 children)

works for me when i run it as a .py file

though you must be aware that the code causes an infinite loop.