Graphic design python turtle 🐢

from turtle import * import colorsys bgcolor('black') pensize(0) tracer(50) h=0 for i in range(300): c=colorsys.hsv_to_rgb(h,1,1) h+=0.9 color(c) forward(300) left(100) fd(i) goto(0,0) down() rt(90) begin_fill() circle(0) end_fill() rt(10) for j in range(5): rt(30) done() Please follow my blog and subscribe my channel for more videos and newly updates 👍👍👍👍👍 import turtle as t import colorsys t.bgcolor('black') t.tracer(100) h=0.4 def draw(ang,n): t.circle(5+n,60) t.left(ang) t.circle(5+n,60) for i in range(200): c=colorsys.hsv_to_rgb(h,1,1) h+=0.005 t.color(c) t.pensize(2) draw(90,i*2) draw(120,i*2.5) draw()

What is HTTP and basic features of HTTP.

 HTTP 

  • It is stands for Hypertext Transfer Protocol.
  • It is a protocol used by WWW for data communication between web client (browser) & web server.
  • HTTP protocol defines how messages are prepared & transmitted during web client & web server communication.
  • It also defines what actions web server browser should take in response to various commands.
  • HTTP is a TCP/IP based communication protocol, that is used to deliver data which may be HTML files, image files, query results, etc. On the world wide web(www).
  • The defaults port is TCP 80, but other ports can be used as well.
Basic Features of HTTP :-
There are three features that make HTTP a simple but powerful protocol.

1. Connectionless Protocol :- HTTP is a Connectionless protocol. HTTP client initiates a request and waits for a response from the server. When the server receive the request, the server processes the request and sends back the response to the HTTP client after which the client disconnecteds the connection. The connection between client and server exist only during the current request and response time only.

2. Media Independent:- HTTP protocol is a media Independent as data can be sent as long as both the client and server know how to handle the data content. It is required for client and server to specify the content type is MIME type header.

3. Stateless:- HTTP is a stateless protocol as both the client and server know each other only during the current request.
Due to this nature of the protocol, both the client and server do not retain the information between various requests of the web pages.




Comments

Popular posts from this blog

Create shape using python turtle 🐢

Make fire crackers using python turtle 🐢

Protocol verification using finite state machine model in computer network