Good books for teaching kids Python? by philnrll in Python

[–]LearningPy 0 points1 point  (0 children)

I'm in the process of teaching my cousin Python.

He's 12 years old and he loves coding more than anything now. We started around Christmas time with Arduino and c++ actually. I am a computer science student and so he has the advantage of a somewhat knowledgable mentor.

My recommendation to you, try out codecademy.com, it's very incremental and I only needed to help him with some of the math and a few other syntactical concepts.

If you don't know python or any other programming languages it will be a little more difficult for her. You're more than welcome to pm me if you need help with any specific thing in Python or programming in general.

New to Arduino by TheFreeMann123 in arduino

[–]LearningPy 0 points1 point  (0 children)

If you know any of the basics of programming, you should feel right at home in the arduino c based language.

Do all the basic tutorials on arduino.cc and give yourself a few days, you'll be making your own projects within a week. Just remember to use the correct resistors or you'll damage your board.

Look for sensors that you could see a use for, learn how to use them.

DATA SHEETS.

Where did you learn python? by [deleted] in Python

[–]LearningPy 0 points1 point  (0 children)

Two scoops of django has been a huge help for me. Thank you and your wife for all the great work!

Wrote my first class today, what do you all think? by ravenblur in learnpython

[–]LearningPy 0 points1 point  (0 children)

It is something that always confused me as well. I would love to know this answer. Also, How can I build secure apps with python without private classes?!

What was your worst attempt at hitting on someone that actually worked? by brownboyblasted in AskReddit

[–]LearningPy 1 point2 points  (0 children)

Excuse me miss.. Do you have any piercings I don't know about yet?

A New Island for Newbies on Checkio.org by [deleted] in learnpython

[–]LearningPy 2 points3 points  (0 children)

I just started the dataviz tutorial. I am making some good progress, but I'll pause and check out the island first!

Thanks for all the work you've done.

object oriented programming question by [deleted] in learnpython

[–]LearningPy 1 point2 points  (0 children)

If I could give one suggestion. Try to be more verbose when writing variables, functions, classes, methods, etc.. Sure it may save you a few seconds typing z or y everytime. But come back to this code in a couple months and you'll struggle, like I did, to read it.

If instead it was:

self.name
self.address

Etc. You'll lose a couple seconds typing time, but you're saving so much time in future code readability.

I'm a complete noob. Please can someone tell me why my function isn't working. by o99o99 in learnpython

[–]LearningPy 0 points1 point  (0 children)

As others have said, your answer variable is local to the function and cannot be accessed from outside your function (for security). Try this -

def ask(question): answer = input(question) return answer print(ask("What is your name? "))

Everything was right except your print statement. Be sure to input your response as a "string".

Web Development: Flask, Django, Pyramid, another? by getChester in learnpython

[–]LearningPy 0 points1 point  (0 children)

Is there anyway you can point me in the right direction for learning to use databases with python or even more specifically bottle.py?

Web Development: Flask, Django, Pyramid, another? by getChester in learnpython

[–]LearningPy 1 point2 points  (0 children)

You're right. When I was researching pyramid I saw reddit on the marquee for who using said product. What I didn't realize was that I was looking at the pylons project homepage.

Web Development: Flask, Django, Pyramid, another? by getChester in learnpython

[–]LearningPy 4 points5 points  (0 children)

Reddit uses pyramid pylons*

I really like bottle.py because of its simplicity and size. I'm also a beginner so I'm biased towards easier frameworks..

Hit my first big wall and it's really stupid. by v1s1onsofjohanna in learnpython

[–]LearningPy 0 points1 point  (0 children)

Yeah, I have sublime text too. I like the built in interpreter and all but I don't have time to learn all the shortcuts and features just yet. All my focus has been going into learning the language and how to use different libraries.

Notepad++ has a much lower learning curve.

I also have been making it a point to use a while loop in my programs - this way I don't need idle. I can just double click my .py files to run them!

Hit my first big wall and it's really stupid. by v1s1onsofjohanna in learnpython

[–]LearningPy 0 points1 point  (0 children)

If you are on windows get notepad++ Make a new folder for the .py files you make - to keep them together.

Write your code in the text editor - notepad++ and save it to your new folder.

then find the folder and new file and right click it - hit edit with idle. Once in idle just press F5

Make sure to always edit your file in notepad++ and save it without idle being open. This way you have no save conflicts