#๐ How to print
50 messages ยท Page 1 of 1 (latest)
@kind tiger
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
print("Hello")
im used to c#
and the print method is built into python, and the first parameter you specify within the () is what you want to print
!res @kind tiger check these out
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
yeah so basically Console.WriteLine("Hello") is print("Hello") in python, except you dont need to import anything unlike System in C#.
alr thank you
okay
what's my next step
learning how to use sockets?
you can't just jump from not knowing how to use print to sockets
ong i can
that's like going from caveman to rocket ship in a second
right
good luck then.
give me a second
trust the process
import socket
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket.bind(("0.0.0.0", 8820))
socket.listen(1)
client, addr = socket.accept()
client.send("Hello".encode())
socket.close()
Rule 10
Do not copy and paste answers from ChatGPT or similar AI tools.
that's not chatgpt
๐คฃ ๐คฃ ๐คฃ
but im pretty sure it was copied from somewhere.
from my keyboard
ill even make the client side
k idk how
okay you're starting to sound like a troll, have fun.
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
๐ How to print