import random
Plangs = ("python", "php", "javascript", "c", "perl", "c++", "java", "ruby", "c#", "visual basic", "fortran")
answer = random.choice(Plangs)
correct = answer
rumble = ""
while answer:
position = random.randrange(len(answer))
rumble += answer[position]
answer = answer[:position] + answer[(position + 1):]
print("The Word Is:", rumble)
guess = input("Guess This Programming Language:")
guess = guess.lower()
while (guess != correct) or (guess == ""):
print("That is not the correct answer")
guess = input("Guess This Programming Language:")
guess = guess.lower()
if guess == correct:
print("Congratulation You Win!")
input("\n\n Press enter to exit")
OUTPUT :-
For Other Programs Visit The WebSite:- https://www.techapurba.com/
For Other Programs Visit The WebSite:- https://www.techapurba.com/
Follow
Me On Social Media :-
INSTA photography page :- https://www.instagram.com/photo_mania_hub/
Twitter link : - https://twitter.com/ApurbaKhanra199
Facebook page link (Crazy Coders) :-https://www.facebook.com/codercrazy/?modal=admin_todo_tour
Insta photography link :- https://www.instagram.com/photo_mania_hub/
Facebook link :- https://www.facebook.com/profile.php?id=100009747586288
For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/
0 Comments