Desperately seeking programmer who knows python and Visual basic!

Oliver Vecernik vecernik at aon.at
Wed Jan 15 09:44:17 CET 2003


hockeymike schrieb:
> Could someone please translate the following statement from Python to
> its equivalent in Visual Basic please??
> 
> 
> points = 0
> 
> for level in range(1,100):
> 
> diff = int(level + 300 * math.pow(2, float(level)/7) )
> 
> points += diff
> 
> str = "Level %d = %d" % (level + 1, points / 4)
> 
> print str
> 
> It was supposed to be used for an experience point calculator for an
> online game, and I want to use it....however, i dont know
> Python....Thank you if you can give me any help

points = 0
For Level = 1 To 99
diff = Int(Level + 300 * 2 ^ (Level / 7))
points = points + diff
Debug.Print "Level"; Level + 1; " ="; Int(points / 4)
Next


HTH
Oliver





More information about the Python-list mailing list