A simple logic game by python for beginners

Subscribers:
4,059
Published on ● Video Link: https://www.youtube.com/watch?v=CfydsnrSpXw



Category:
Vlog
Duration: 14:44
151 views
6


A simple logic game by python for beginners
in this video contains a simple logic game
create a simple logic command line game
random module and string module

A simple logic building game for absolute beginners .
at first import module random and string then grab alphabets and random number for indexing

****** code *********

#### create a local game for competative exam
""" example
B,G,L then waht is the next ?

"""
## module random , string
import random
import string
alphabate=list(string.ascii_uppercase+string.ascii_uppercase+string.ascii_uppercase)
print(alphabate)

####random choice a number
num1=random.choice(range(26))
print(num1)

### condition 1 for question
def condition1():

alpha_one=alphabate[num1]
ran_num=random.choice(range(7))
alpha_two=alphabate[num1+ran_num]
alpha_three=alphabate[num1+ran_num+ran_num]
alpha_four=alphabate[num1+ran_num+ran_num+ran_num]
return alpha_one,alpha_two,alpha_three,alpha_four



####print question and answer
con2=condition1()
con=list(con2)
question="here are three letter so tell what is next letter: {},{},{}".format(con[0],con[1],con[2])
print(question)
ans=input("tell your ans what is the next letter :")
if ans.upper()==con[3] :
print("you are correct ")
else:
print("you are wrong")

******end code **********

more video:

how to get free ssl:
https://www.youtube.com/watch?v=6LYK5n1iay0&t=19s

free download django website about poll app:
https://www.youtube.com/watch?v=RPArC1uj5D4&t=10s

django admin tutorial :
https://www.youtube.com/watch?v=jSOKrzOKRoI
https://www.youtube.com/watch?v=sP5X-t4IA2I
https://www.youtube.com/watch?v=6UeuuSUtu_s

support the channel
LIKE || SUBSCRIBE || SHARE
#python #logic_game




Other Videos By B Learning Club


2020-10-03Try except exception handling in python
2020-09-28Upload video By User in django || Tutorial
2020-09-24Developer's idea , how to share link on Facebook's story
2020-09-23HOW TO UPLOAD IMAGE IN DJANGO || Image upload by User in Django || TUTORIAL
2020-09-19How to upload video in django || how to || tutorial
2020-09-17upload image in django || how to upload and display image in django by admin || tutorial
2020-09-14How to create Login system in Django with custom CSS form
2020-09-11Django authentication login and logout
2020-09-07sign up with Django forms || Registration with Django forms
2020-09-05Image matching python opencv
2020-08-31A simple logic game by python for beginners
2020-08-28How to deploy your Django project with DigitalOcean
2020-08-25How to deploy Django with DigitalOcean
2020-08-23How To host Django project on python anywhere || django hosting python anywhere
2020-08-22what is git and github || Upload your project Github step by step || django project - #11
2020-08-21How to add tags in Django || Django taggit tutorial || Django project - #10 | SEO like tags
2020-08-18Django project #9 || Filter with exclude object in django
2020-08-15Get google AdSense in two days || A simple django project for benginner
2020-08-14speech recognition python || python voice recognition || download pyaudio
2020-08-12Django Project #8 || Filter query set or objects in Django || select random object from model
2020-08-09CSRF token in django || Csrf token live example || Cross-site request forgery



Tags:
python
python project
a game by python
create a game by python
create a logic game by python
a logic building game by python
a simple python project for beginners
python beginners tutorial
python beginners project
python beginners exercise
python basics for beginners
logic game by python for beginners