Get the latest Education e-news

Go Back   Game Career Guide Forums > Programming
Forum Home Register Members List Mark Forums Read

Thread Tools Display Modes
Old 02-10-2009, 12:06 PM   #11
Junior Member

Activity Longevity
0/20 16/20
Today Posts
0/11 ssssssss5

How transferrable is Python? Lets say I wanted to make bad Java games for a website of mine or use Java for whatever reason, would it take me long to learn it?

Also, I notice every time I press F5 and save on a new piece of work, IDLE stops highlighting Python Syntax in that work, period. Why is that?

With a total of 2 or so hours clocked up in Python, I have developed my first game.


print "Welcome to the first game."
print "-----------"

import random #Importing the random module
compnum = random.randrange(5)
guessnum = input('Give me a number. One to five.\n')

#Thinkng time
if compnum == guessnum: #Check whether the guess is right.
    print "Success, you have won the opening game." #Winner Text
    print "You've failed. Start over you miserable loser." #Loser Text
    print "Here's the real number.", compnum

Thanks again to you guys, I'm excited just opening IDLE now.
NovaSyx is offline   Reply With Quote
Old 02-10-2009, 12:22 PM   #12
yaustar's Avatar

Activity Longevity
2/20 19/20
Today Posts
1/11 sssss2328
Location: UK

Python and Java are based on similar paradigms. As long as you can program in a particular paradigm, picking up any language within that paradigm is relatively easy.
yaustar is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
All times are GMT -8. The time now is 08:01 PM.

UBM Tech