Atharv Goel
@AtharvGoel
This is a code cracking game called Mastermind. Because I think an AI being the codebreaker would be boring (since everything would happen in a split
Python
Makes completely random words of a certain syllable length. There is a chance, though, that your final word might be a real word or one of the syllabl
Python
Do you like the pictures I took in the photobooth (and definitely didn't code)?
Python
I'm trying to get two repls to connect using socket. I created some code using a tutorial, but for some reason, I can't get it to work. Here are the r
Froggo-School don't know what language it was written in, but for future reference, an example using python's socket library:
import socket
tcpconnection = socket.socket(socket.AFINET, socket.SOCK_STREAM)
udpconnection = socket.socket(socket.AFINET, socket.SOCK_DGRAM)
otherwise, functions are the same.
`2 years ago
abc3354 I'm sorrry but I don't think replit supports tcp servers
You can try to ask for the feature at repl.it/feedback
There is a way to do it using ngrok, I can explain it quickly if you are interested3 years ago
How can I create two python repls, so that when I run them, what I type in one repl will show up on the other?
1927829 Hi! I'm not very experienced in python, but this might work:
In one real, we can type
from replit import db
x = str(input())
db["hello"] = x
and in the other repl:
db = To find the link, go to the first real and type $REPLITDATABASEURL + "/hello"
import requests
response = requests.get(db)
print(response.text)
I hope that works.
2 years ago
PattanAhmed @AtharvGoel Hi,
You can use an XPath to locate the :
iframe = driver.findelementby_xpath("//iframe[@name='Dialogue Window']")
Then switch_to the :
driver.switch_to.frame(iframe)
Here's how to switch back to the default content (out of the ):
driver.switchto.defaultcontent()
Reference:- Click here
Try
and tell me the results
Thanks!
Hope this helps3 years ago
I am learning how to use sockets with python. My socket was able to connect, but the repl.co says - Hmmmm.... We Couldn't Reach Your Repl. I don't kno
Coder100 Hello, you currently have no web server, your code only connects to the socket port, but there is no web server being made. You will have to create one with flask.3 years ago
PattanAhmed @AtharvGoel Hi,
But it says Socket created successfully.
and the main thing it's from your code.
That means it has imported Socket successfully to your file.
01
You need to have a Web Server. If you don't have then you have to create one. You can create one with Flask
Thanks!
Hope this helps3 years ago