Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions OrbitRotationAnimation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Orbit Rotation</title>
<style>
body{
background-color: black;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.sun{
position: relative;
height: 200px;
width: 200px;
border-radius: 50%;
background-color: #e8d108;
box-shadow: 0px 0px 100px 1px #e8d108;
}
.earth{
height: 100px;
width: 100px;
border-radius: 50%;
top: 28%;
left:148%;
background-color: rgb(10, 97, 237);
box-shadow: 0px 0px 50px 1px rgb(10, 97, 237);
position: absolute;
transform-origin: -200px center;
animation: spin 7s linear infinite;
}
@keyframes spin {
from{transform: rotate(0deg);}
to{transform: rotate(360deg);}
}
</style>
</head>
<body>
<div class="sun">
<div class="earth"></div>
</div>
</body>
</html>
20 changes: 20 additions & 0 deletions RandomNumberGuesssinGame.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import random

secret_num = random.randint(1, 100)

print("Welcome to 'Guess the Number Game'!")
print("I'm thinking of a number between 1 and 100.")

guess = None
attempt = 0

while guess != secret_num:
guess = int(input("Take a guess: "))
attempt += 1

if guess < secret_num:
print("Number is too small! Try again.")
elif guess > secret_num:
print("Number is too big! Try again.")
else:
print(f"Congratulations! You guessed it in {attempt} attempts!")