Skip to content

Commit

Permalink
Merge pull request Chinmay-03#56 from Prasanth-Anand-P/main
Browse files Browse the repository at this point in the history
Task 2
  • Loading branch information
Chinmay-03 authored Oct 16, 2022
2 parents ee935b2 + 909620c commit 6e56ecd
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Aboutme.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@
"Branch": "Artificial intelligence and Data science ",
"Info": "A frontend-developer ready to dive into the world AI&ML soon.....; Always ready to help because collaboration first code second."
}
{
"Name": "Prasanth Anand P"
"Branch": "Computer Science",
"Info": "I'm type of person who is Ready To learn and try new things"
}
]
}
}
50 changes: 50 additions & 0 deletions Uploads/dice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import random
from tkinter import Y
while(True):
num = random.randint(1,6)
op = input("Press y to roll: ")
if(op!="y"):
break
else:
if(num==1):
print("|------------|")
print("| |")
print("| 0 |")
print("| |")
print("|------------|")

elif(num==2):
print("|------------|")
print("| |")
print("| 0 0 |")
print("| |")
print("|------------|")

elif(num==3):
print("|------------|")
print("| 0 |")
print("| 0 |")
print("| 0 |")
print("|------------|")

elif(num==4):
print("|------------|")
print("| 0 0 |")
print("| |")
print("| 0 0 |")
print("|------------|")

elif(num==5):
print("|------------|")
print("| 0 0 |")
print("| 0 |")
print("| 0 0 |")
print("|------------|")

else:
print("|------------|")
print("| 0 0 |")
print("| 0 0 |")
print("| 0 0 |")
print("|------------|")

0 comments on commit 6e56ecd

Please sign in to comment.