#Stringrev.py #Here we Use The Indexes in reversing a string and the code will be: def reverse ( a ): return (a[::- 1 ]) print (reverse( "Your String" )) # Here I used A function To Make It Easy
n = int ( input ( " Enter Here You Want to calculate the factorial: " )) x = 1 for i in range ( 1 , n + 1 ): x *= i print ( x ) """ FACTORIAL EXAMPLE: 1! = 1 2! = 2*1 = 2 3! = 3*2*1 = 6 4! = 4*3*2*1 = 24 5! = 5*4*3*2*1 = 120 """
Piano Tiles is the most amazing game that we have played in our free time. I hope that you have also heard it and played also. So, I woke up today and thought that I should play a game and while playing the game I thought that why should not I automate it so I did. So I code this script and tried it and it is working very well. And this script is experimented on lagged.com which has a lot of games on their website and yes one more thing you can see my name on the leader boards now with the name 'Ak' Leaderboards: And yes I scored less because I can not wait anymore to make more games automated with python. The conclusion is yes it is fun coding this program. I hope you all will code also. T o make it run in your pc: Step1: first install the python and paste the script in your computer or system you have. Step2: get the positions of first, second, third and fourth grid iof the game, that where it is visible on your system's monitor. Step3: run the script and switch to browse...
Comments
Post a Comment