Answers for "a"

1

a

print('A is the first letter of the alphabet')
Posted by: Guest on December-15-2020
1

A

Hello future me/ other people it is 08/02/2021
Posted by: Guest on February-08-2021
1

a

Dont search yaceeeeeeee
Posted by: Guest on January-01-2021
1

a

The first letter of the alphabet. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Posted by: Guest on December-16-2020
0

a

print("Hello, World!")
Posted by: Guest on September-11-2020
0

a

#import socket module 
from socket import * 
serverSocket = socket(AF_INET, SOCK_STREAM) 
#Prepare a sever socket 
TCP_PORT = 8000
BUFFER_SIZE = 1024
    
serverSocket.bind(('', TCP_PORT))
serverSocket.listen(1)

while True:
    #Establish the connection 
	print 'Ready to serve...' 
	connectionSocket, addr = serverSocket.accept()

	print 'Connection address:', addr

	try:
		message = connectionSocket.recv(BUFFER_SIZE) 
		filename = message.split()[1] 
		f = open(filename[1:]) 
		outputdata = f.read()

		#Send one HTTP header line into socket 
		connectionSocket.send('HTTP/1.0 200 OK\r\n')

		#Send the content of the requested file to the client
		
		for i in range(0, len(outputdata)): 
			connectionSocket.send(outputdata[i])
			
		connectionSocket.close()
	
	except IOError: 
		#Send response message for file not found 
		fail = '''<html> <head> <title> 404 </title> </head> <body><h1>404 Bruh</h1> <h3> hushies! </h3> </body></html>'''

		connectionSocket.send('HTTP/1.0 200 OK\r\n'%len(fail))

		for q in fail:
			connectionSocket.send(q)

	#Close client socket
	
	serverSocket.close()
Posted by: Guest on December-23-2020
-1

a

Use Code AN56BZ for a 2x earning rate on https://salad.io/
Posted by: Guest on April-19-2021
0

a

cards
Posted by: Ravindra Shirke on April-22-2022

Python Answers by Framework

Browse Popular Code Answers by Language