Posts

Showing posts from June, 2021

Toss game

  import random toss = [ "head" , "tail" ] print ( "toss:" ,toss) game_round = 10 current_round = 0 your_point = 0 computer_point = 0 while current_round < game_round:      j = input ( "guess it's tail or head:" )    m = random.choice(toss)    current_round = current_round + 1      print (m)    if m == "head" and j == "tail" :       print ( "but its head" )       print ( "sorry but you are losser" )       computer_point = computer_point + 1       print ( "computer points are:" , computer_point)    elif m == "tail" and j == "head" :       print ( "but its tail" )       print ( " sorry but you are losser" )       computer_point = computer_point + 1       print ( "computer...

Mind game python my first project

  #-*-coding:utf8;-*- #qpy:console print ( "This is console module" ) print ( "hey guys now we start a game" ) print ( "pls enter same no to stat the game" ) s = int ( input ()) print ( "now we start it" ) print ( "this game is like i will tell you which no you have pickup in your mind" ) print ( "game name is 'mind game'" ) print ( " pls enter some number to start the game" ) sn = int ( input ()) print ( "pick any no in your mind pls don't tell me what no is that" ) print ( "now pls enter some number to start" ) ssn = int ( input ()) print ( " now multiply that no by 2, which you dicide in your mind" ) print ( "pls enter some number again to carry the game again" ) ssnn = int ( input ()) print ( "now add 70 to the total of your no" ) print   ( "pls enter some no to get next step of our game" ) ssnnn = int ( ...