Created
April 6, 2011 20:31
-
-
Save hasayvaz/906463 to your computer and use it in GitHub Desktop.
verilen bir sayiyi ters ceviren program
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| def cevir(a): | |
| a = str(a) | |
| i = -1 | |
| b = "" | |
| while -i < len(a) + 1: | |
| b += a[i] | |
| i -= 1 | |
| print int(b) | |
| cevir(12345) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment