Charan V
@panniu
Hello
So I was trying to make a game and I used this function:
import time, random
def typer(string):
string = list(string)
for char in string:
20Aggett import sys
from time import sleep
def slowprint(text):
for x in text:
print(x, end='')
sys.stdout.flush()
sleep(0.1)
#try this1 year ago
pyelias Add , flush=True to the print() and it will work. This is because most terminals (including repl.it's) are line buffered, and will not update what is shown on the screen until a newline is printed. flush=True forcibly updates the screen without waiting for a newline.4 years ago
Game : https://car-game--panniu.repl.co/ or http://cargame.atwebpages.com/
Code : https://repl.it/@panniu/CarRaceGame
This is not just an anagram checker, but better!!
https://repl.it/@panniu/Anagrams
https://repl.it/@panniu/Guess-your-number
http://panniu.repl.co/90s-Christmas-Countdown/
Use Chrome to check custom scroll-bar.
https://repl.it/@panniu/Language-Translator
Leave a comment for any suggestions or any languages I am missing.
vvvvvvvvvvvvvvvvvvvvvvvvvvvv
\\
\\
https://repl.it/@panniu/BinaryDraw
\\
\\
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Help Tool:
https://repl.it/@panniu/Bina
pyelias Just some random notes and suggestions:
The help tool doesn't work.
Have you considered using loops for the print\(''.join\(...\)\) parts?
What happens when you highlight it is cool.5 years ago
http://panniu.repl.co/Modern-Webpage-for-Beginners
Please feel free to give me suggestions
jdw136 Great page! I loved the two shades of blue on the page, but tbh I kinda have a problem with the yellow. But that's just my opinion. The real issue is that you don't have any images on the page. When using Repl, you need to upload an image from your drive, or else it wont' show up. But otherwise good site.5 years ago
https://repl.it/@panniu/Numbers-To-Words
Is there a way to shorten this code?
If so, please help me!!!
Thanks
panniu Fixed a minor thing.
Try to type zero before the main number
Example:
Before:
Input = 001 ---> Output = hundred and one
After:
Input = 001 ---> Output = one5 years ago
pyelias I think I know how to shorten it a bit. Split the number into chunks, like 1234567 -> \[1,234,567\] and convert each to a number, then add millions and thousands and stuff.5 years ago
https://repl.it/@panniu/Info-Generator