Monday, August 29, 2022
How to access the operating system of your device using python
Sunday, August 28, 2022
How to make a code to insult the user using python
import random
a=input("Enter your name -->")
test_list1 = ["I never forget a face, but in your case I'll be glad to make an exception.","If you were twice as smart, you'd still b stupid.","I'm jealous of all the people who haven't met you","Somewhere out there is a tree working very hard to rplace th oxygen you consume.Now go apologize to it","It's better to let others think you are an idiot ,rather to open your mouth and prove it","They say beauty is on th inside.You better hope it's true","Don't compare yourself to others,you'd just be insulting yourself.","you're about as intresting as watching paint dry.","I wish we were better strangers.","If there is ever a price over your head take it.","you're so stupid that you can't get from A to B without going through the rest of the alphabt.","you are the kind of human that would be used as a bluprint to build an idiot","People say god cannot do a mistake but it's not true in your case.","were you born on a highway cause that's where most accidents happen","you're so dense that light bends around you"]
random_num = random.choice(test_list1)
print(a," ,",str(random_num))
b=input("Do you wish to continue (Y/N)-->")
while(b.lower()=='y'):
c=input("Enter your name -->")
test_list2=["I never forget a face, but in your case I'll be glad to make an exception.","If you were twice as smart, you'd still b stupid.","I'm jealous of all the people who haven't met you","Somewhere out there is a tree working very hard to rplace th oxygen you consume.Now go apologize to it","It's better to let others think you are an idiot ,rather to open your mouth and prove it","They say beauty is on th inside.You better hope it's true","Don't compare yourself to others,you'd just be insulting yourself.","you're about as intresting as watching paint dry.","I wish we were better strangers.","If there is ever a price over your head take it.","you're so stupid that you can't get from A to B without going through the rest of the alphabt.","you the kind of human that would be used as a bluprint to build an idiot","People say god cannot do a mistake but it's not true in your case.","were you born on a highway cause that's where most accidents happen","you're so dense that light bends around you"]
random_num2=random.choice(test_list2)
print(c,",",str(random_num2))
d=input("Do you wish to continue (Y/N)-->")
if(d.lower()=='y'):
print("Let's continue")
elif(d.lower()=='n'):
print("Insulter ended")
break
else:
print("Invalid Input")
Tuesday, August 23, 2022
How to make 9 green colored squares using turtle in python
from turtle import *
import turtle
bgcolor('white')
speed(5)
s=int(input("Enter the length of the rectangle"))
t=int(input("Enter the breadth of the rectangle"))
hideturtle()
fillcolor('green')
begin_fill()
forward(s)
left(90)
forward(t)
left(90)
forward(s)
left(90)
forward(t)
left(90)
forward(s)
right(90)
forward(t)
right(90)
forward(s)
right(90)
forward(t)
right(90)
back(s)
right(90)
back(t)
right(90)
back(s)
right(90)
back(t)
right(90)
back(s)
left(90)
back(t)
left(90)
back(s)
left(90)
back(t)
left(90)
forward(s+s)
left(90)
forward(t)
left(90)
forward(s)
left(90)
forward(t)
left(90)
forward(s)
right(90)
forward(t)
right(90)
forward(s)
right(90)
forward(t)
right(90)
forward(s)
right(90)
forward(t+t)
right(90)
forward(s)
right(90)
forward(t)
right(90)
back(s)
right(90)
forward(t)
right(90)
forward(s)
right(270)
back(s+s)
right(90)
back(s)
left(90)
end_fill()
Monday, August 22, 2022
Monday, August 15, 2022
(Working on a name)
import turtle
colors=['red','purple','blue','green','orange','yellow']
t=turtle.Pen()
turtle.bgcolor('black')
for x in range(182):
t.pencolor(colors[x%6])
t.width(x/100+1)
t.forward(x)
t.left(59)
(Working on a name)
Wednesday, August 10, 2022
How To Make A Multiple Stream Quiz(Not yet Complete)
for i in range (65,91): print(chr(i))
-
from turtle import * import turtle bgcolor('white') speed(5) s=int(input("Enter the length of the rectangle")) t=int(input...
-
from sketchpy import library myObject = library.rdj() myObject.draw()



