Author Topic: Starting with python  (Read 1364 times)

Kionyk

  • Sr. Member
  • ****
  • Posts: 279
  • Reputation: 10
  • Word from the wise
  • iDevices: iPod touch 3gen 32 gb 4.3
Starting with python
« on: November 24, 2012, 12:07:47 pm »
Hey I have a couple of questions about python. So Is it possible to write almost any thing in python like tweaks and apps and stuff? Also what are some basic excersices to start with using python
Thanks for ur help
Please move this if it is on the wrong board

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1926
  • Reputation: 187
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: Starting with python
« Reply #1 on: November 24, 2012, 12:19:05 pm »
Nope, this is the correct board :)

Python is an interpreted language, which means you don't compile your source code and distribute an executable file. You distribute your source code(.py file) and that file is interpreted(run) by the python interpreter on the machine. In order to run something you have written in python, the machine you want to run it on needs to have python installed.

That is the major "limitation" to be aware of when using python.
Native iOS apps are written in Obj-C, not python. You can write something for jailbroken devices as those devices can install a python interpreter through Cydia

I have found this book helpful, both for basic exercises to get used to the language, and for a reference when writing programs and am not sure how to do something
http://learnpythonthehardway.org/book/
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4017
  • Reputation: 216
  • Badges:
Re: Starting with python
« Reply #2 on: November 24, 2012, 12:21:22 pm »
You *can* write tweaks and apps in it, but at that point you are basically programming ObjC through python in a far more convoluted and intricate method than you need. But yes, you can write almost anything in python.

Kionyk

  • Sr. Member
  • ****
  • Posts: 279
  • Reputation: 10
  • Word from the wise
  • iDevices: iPod touch 3gen 32 gb 4.3
Re: Starting with python
« Reply #3 on: November 24, 2012, 12:38:04 pm »
Ok thanks guys and @grinch +1 for the book

Kionyk

  • Sr. Member
  • ****
  • Posts: 279
  • Reputation: 10
  • Word from the wise
  • iDevices: iPod touch 3gen 32 gb 4.3
Re: Starting with python
« Reply #4 on: November 24, 2012, 01:53:01 pm »
I have one more question. As long as I have the language on my iPod I can write any program straight from my iPod, correct?i would like to do most it from iPod instead of using my alienware

Don't like seeing ads? Click here to register!

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1926
  • Reputation: 187
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: Starting with python
« Reply #5 on: November 24, 2012, 02:25:31 pm »
Sure, writing code is just typing text into a file, so as long as you have a comfortable program to input code in on your pod, that will work
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

Alex47

  • Hero Member
  • *****
  • Posts: 1369
  • Reputation: 48
  • (I can't think of something funny to go here)
  • Computers: Asus k55v, custom built self-acclaimed tank of a pc
  • iDevices: iPhone 3G, iPod touch 4g, iPod touch 2g
Re: Starting with python
« Reply #6 on: November 24, 2012, 02:26:16 pm »
Yepp
My Number:00110110 00110110 00110110

Kionyk

  • Sr. Member
  • ****
  • Posts: 279
  • Reputation: 10
  • Word from the wise
  • iDevices: iPod touch 3gen 32 gb 4.3
Re: Starting with python
« Reply #7 on: November 24, 2012, 03:13:15 pm »
Thanks

ENIAC

  • Sr. Member
  • ****
  • Posts: 464
  • Reputation: 36
  • LAB
  • Computers: LAB
  • iDevices: Not inportant
Re: Starting with python
« Reply #8 on: November 25, 2012, 12:56:51 pm »
I am still new to this but how do you code a graphic program ( not just text )
Be the Best or Beat the Best

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4017
  • Reputation: 216
  • Badges:
Re: Starting with python
« Reply #9 on: November 25, 2012, 01:01:21 pm »
In python? Look up wxpython library

Don't like seeing ads? Click here to register!

ENIAC

  • Sr. Member
  • ****
  • Posts: 464
  • Reputation: 36
  • LAB
  • Computers: LAB
  • iDevices: Not inportant
Re: Starting with python
« Reply #10 on: November 25, 2012, 01:08:13 pm »
Ok tanx
Be the Best or Beat the Best

Kaonashi

  • Noob
  • *
  • Posts: 8
  • Reputation: 0
Re: Starting with python
« Reply #11 on: December 05, 2012, 02:10:10 pm »
Ok tanx

If you are deving on windows you can also check out py2exe, it will make exes out of your python files

@MeddleR

  • Noob
  • *
  • Posts: 31
  • Reputation: 5
Re: Starting with python
« Reply #12 on: December 05, 2012, 05:28:01 pm »
cool had no clue @Kaonashi

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4017
  • Reputation: 216
  • Badges:
Re: Starting with python
« Reply #13 on: December 05, 2012, 07:17:54 pm »
But i would recommend only doing py2exe if it is finished. Compiling an interpreted lang is wasted time because it is intrepreted. I only compile python progs for using on a friend's windows computer or for if the prog needs a speed boost.

ENIAC

  • Sr. Member
  • ****
  • Posts: 464
  • Reputation: 36
  • LAB
  • Computers: LAB
  • iDevices: Not inportant
Re: Starting with python
« Reply #14 on: December 11, 2012, 03:51:18 pm »
Where can i get python card , i tried downloading it from their website , but i cant install it
Be the Best or Beat the Best