What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-15 17:25:16
PHP Stream Functions
The Stream functions are part of the PHP core. There is no installation needed to use these functions. set_socket_blocking() Deprecated in PHP 5.4, and removed in PHP 7.0. Alias of stream_set_blocking() stream_bucket_prepend() stream_context_create()... Add solution -
Python 2021-11-09 05:39:10
return code error python
from turtle import* from random import randrange from freegames import square, vector food = vector(0,0) snake = [vector(10,0)] aim = vector(0,-10) def change(x,y): aim.x=x aim.y=y def inside(head): return -200<head.x<190 and -200 <head... Add solution -
-
Python 2021-10-03 09:38:08
rotate matrix 90 degrees clockwise in python
#The program defines the square matrix 90 degrees clockwise direction. m,n = map(int,input().split()) #m,n are the number of rows and columns. #m = int(input('rows')) l = [] for i in range(m): x = list(map(int,input().split())) #for taking the rows a ... Add solution -
Python 2021-09-23 08:35:07
complete python developer in 2020 zero to mastery
# Note: No semicolons needed. Comments: # # Tips: \n in string adds new line. \t adds new tab. len() measures length of item. int(), str(), float(), bool, etc converts items # Output: print(value) print("Hi!") # Variables my_variable = "Hi!... Add solution -
Python 2021-09-15 17:38:02
python ists
my_list = ["banana", "cherry", "apple"] # len() : get the number of elements in a list print("Length:", len(my_list)) # append() : adds an element to the end of the list my_list.append("orange") # inser... Add solution
Best helpers
Ranking is empty