|
|||||||
| Forum Home | Register | Members List | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | ||||||||
|
Junior Member
|
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. Code:
#Intro
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
else:
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. |
||||||||
|
|
|
|
|
#12 | ||||||||
|
Administrator
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.
__________________
Steven Yau [Alix Games Blog] [Portfolio] [How I broke into the Games Industry] [Why I left my Games Job] [How to be a Games Tester] [Getting back into the Game] |
||||||||
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
All times are GMT -8. The time now is 02:55 PM.





















Linear Mode

