09-19-2013, 03:12 PM (This post was last modified: 09-19-2013, 03:14 PM by tokumei.)
Or just use it to write a simple plugin for Bukkit with only 10 lines, as compared to what you'd have to do in Java. There's also the plus of not having to recompile every time you make a change.
DJ8X, codecademy.com has a pretty good online tutorial for Python, Ruby, Javascript, and HTML. and its not just a tutorial, it actually has a code editor on the site so that you can interact with the course that you're trying to learn. and its free!
Btw, python is a great programming language. I've written this program completely from scratch in python:
(Yes I like advanced computational chemistry)
There is no link. The program is still under development. I'm currently working on an algorithm to calculate the exact temperature, products and energy of reaction, using chemical equilibrium.
I just started learning python yesterday. Master Codecademy made me make this today:
Code:
pyg = 'ay' #Suffix
print "Welcome to the English to PygLatin translator!"
original = raw_input("What would you like to translate? ") #Input
if len(original) > 0 and original.isalpha(): #Check if the word is alphanumeric and is more than one character
word = original.lower() #Set word to lowercase
first = word[0] #Find first letter
if first == 'a' or first == 'e' or first == 'i' or first == 'o' or first == 'u': #Check if first letter is a vowel
new_word = word+pyg #Create new word for vowels
print new_word
else:
new_word = word[1:]+first+pyg #Create new word
print new_word
elif original.isalpha == False:
print "Not alpha-numerical!" #Numbers! Oh no!
else:
print "empty" #No word!