Random Joke Generator is a code in which random jokes are generated everytime a button is pressed.
Explanation :
The code is written in python and shows random jokes everytime.
c = 0
jokes = open("jokes.txt", "r")
line = jokes.readline()
while line:
c = c + 1
line = jokes.readline()
print(str(c) + " Jokes In File")
jokes.close()
jokes = open("jokes.txt")
answer = open("answers.txt")
pick = int(input("Which joke do you want to see?: "))
print("Joke #" + str(pick))
i = 0
joke =jokes.readline()
punch=answer.readline()
while joke:
i = i + 1
if(i==pick):
print(joke, end= "")
print(punch)
else:
joke= jokes.readline()
punch=answer.readline()
Okay so in the corner you push the icon that looks like a flag or the symbol thing
then you push control panel which is under where ur name or picture is
then under appearance and personalization push change desktop background
(sorry if this doesnt make any sense)
Answer:
writing one in comments bec i don't have time for both sorry