Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Host and port problems for UDP chat server
Post: RE: Host and port problems

(May-07-2017, 04:31 PM)Larz60+ Wrote: You are specifying UDP not TCP/IP is this what you wanted? for TCP/IP change the SOCK_DGRAM to SOCK_STREAM It's a UDP server. The problem is in the host and po...
YevesDraco General Coding Help 2 3,826 May-07-2017, 04:35 PM
    Thread: Host and port problems for UDP chat server
Post: Host and port problems for UDP chat server

While coding a chat server, I have encountered a problem when trying to bind the host IP and the port to the socket. The socket doesn't want to read the host IP (which is just the standard loop-back ...
YevesDraco General Coding Help 2 3,826 May-07-2017, 04:29 PM
    Thread: Time module help
Post: RE: Time module help

(May-07-2017, 04:14 PM)volcano63 Wrote: print in Python 3.* is a function - use it as print(....) (May-07-2017, 04:15 PM)Larz60+ Wrote: you need to use parenthesis in python 3 print (time.ctime(ti...
YevesDraco General Coding Help 3 3,725 May-07-2017, 04:17 PM
    Thread: Time module help
Post: Time module help

When I try to run the code that contains the line below, it throws up a syntax error to do with the fist time. Any help? (I am on Python 3.5. Code is for a simple text based chat program) print time....
YevesDraco General Coding Help 3 3,725 May-07-2017, 04:13 PM
    Thread: Multi line strings and Ascii art
Post: Multi line strings and Ascii art

Hi! I am programing an RPG at the moment and at several points I use Ascii art. There is a simple way to print several lines of Ascii art by using a multi line string For example, In my RPG, I have ...
YevesDraco General Coding Help 0 5,920 Feb-22-2017, 12:25 PM
    Thread: Code help
Post: RE: Code help

(Feb-21-2017, 09:17 PM)micseydel Wrote: In the else-branch you probably want to re-prompt the user for actionWake1. Whatever you did before the loop, you should do that again. I will try this now.. ...
YevesDraco General Coding Help 7 4,974 Feb-22-2017, 09:23 AM
    Thread: Code help
Post: RE: Code help

(Feb-21-2017, 10:13 PM)wavic Wrote: Why you check for three values when you can do it once. if actionWake1.lower() == "wake": Thanks! I am 15 and I have only been coding on Python for a year and th...
YevesDraco General Coding Help 7 4,974 Feb-21-2017, 10:55 PM
    Thread: Code help
Post: RE: Code help

(Feb-21-2017, 09:02 PM)micseydel Wrote: There are two possibilities. (1) actionWake1 was a correct value, and you hit the break right away or (2), it wasn't and the else-branch doesn't ever change a...
YevesDraco General Coding Help 7 4,974 Feb-21-2017, 09:15 PM
    Thread: Code help
Post: Code help

Hi. I am programing an RPG and I have run into a simple yet strange problem (At least to me) When the user is asked to wake up or not, I used this code: wake = False while wake == False:    if actio...
YevesDraco General Coding Help 7 4,974 Feb-21-2017, 08:47 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020