![]() |
changing type in python
I think I might be going about this a strange way in Python, but here's what I've been doing.
Code:
#!/usr/bin/env pythonCode:
...So I guess I'm asking can you make python think that elem in the for statement is an int and definitely not a string. |
you can convert the str into int before the addition using int()
|
| All times are GMT +2. The time now is 20:09. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.