import random

import math

def name_choice():
    """this function allow the player to choose enter a name or pseudo """
    username=""
    while username =="": #if value of user is empty the loop continue
        username=input("please enter your name or pseudo")
        return username
        print("welcome on roulette game ",username," !")

def user_choice():
    """the function allow the player to choose a number between 0 and 49 ,
    if enter his not a number or enter his str return to choice"""
    number_choice=50 #for enter in a loop
    while number_choice < 0 or number_choice > 49:
        try:
            number_choice=int(input("enter number between 0 and 49 :")) #ask user a number and convert it in integer
        except ValueError: # if number_choice not a number
            print("your enter is not a number") #display error message
            number_choice = 50 #return in a loop
        if number_choice < 0 or number_choice >49:
            print("your enter is not included in range") #display error message  if number is out of range
    return number_choice


def computer_choice():
    """this function makes it possible to randomly a number """
    random_number= random.randrange(50) # choose a random number between 0 and 49
    return random_number

def rules():
    print("you begin the game with 100 € ")
    print("when you fall on the same number you win 3*bet")
    print("when you fall on the same color you win bet/2")
    print("if your are not the same number or same color you loose your bet")

5be102155dc737f23cdd873c2ee6b08075125ab5
<mask token>


def name_choice():
    """this function allow the player to choose enter a name or pseudo """
    username = ''
    while username == '':
        username = input('please enter your name or pseudo')
        return username
        print('welcome on roulette game ', username, ' !')


<mask token>


def rules():
    print('you begin the game with 100 € ')
    print('when you fall on the same number you win 3*bet')
    print('when you fall on the same color you win bet/2')
    print('if your are not the same number or same color you loose your bet')

<mask token>


def name_choice():
    """this function allow the player to choose enter a name or pseudo """
    username = ''
    while username == '':
        username = input('please enter your name or pseudo')
        return username
        print('welcome on roulette game ', username, ' !')


<mask token>


def computer_choice():
    """this function makes it possible to randomly a number """
    random_number = random.randrange(50)
    return random_number


def rules():
    print('you begin the game with 100 € ')
    print('when you fall on the same number you win 3*bet')
    print('when you fall on the same color you win bet/2')
    print('if your are not the same number or same color you loose your bet')

<mask token>


def name_choice():
    """this function allow the player to choose enter a name or pseudo """
    username = ''
    while username == '':
        username = input('please enter your name or pseudo')
        return username
        print('welcome on roulette game ', username, ' !')


def user_choice():
    """the function allow the player to choose a number between 0 and 49 ,
    if enter his not a number or enter his str return to choice"""
    number_choice = 50
    while number_choice < 0 or number_choice > 49:
        try:
            number_choice = int(input('enter number between 0 and 49 :'))
        except ValueError:
            print('your enter is not a number')
            number_choice = 50
        if number_choice < 0 or number_choice > 49:
            print('your enter is not included in range')
    return number_choice


def computer_choice():
    """this function makes it possible to randomly a number """
    random_number = random.randrange(50)
    return random_number


def rules():
    print('you begin the game with 100 € ')
    print('when you fall on the same number you win 3*bet')
    print('when you fall on the same color you win bet/2')
    print('if your are not the same number or same color you loose your bet')

import random
import math


def name_choice():
    """this function allow the player to choose enter a name or pseudo """
    username = ''
    while username == '':
        username = input('please enter your name or pseudo')
        return username
        print('welcome on roulette game ', username, ' !')


def user_choice():
    """the function allow the player to choose a number between 0 and 49 ,
    if enter his not a number or enter his str return to choice"""
    number_choice = 50
    while number_choice < 0 or number_choice > 49:
        try:
            number_choice = int(input('enter number between 0 and 49 :'))
        except ValueError:
            print('your enter is not a number')
            number_choice = 50
        if number_choice < 0 or number_choice > 49:
            print('your enter is not included in range')
    return number_choice


def computer_choice():
    """this function makes it possible to randomly a number """
    random_number = random.randrange(50)
    return random_number


def rules():
    print('you begin the game with 100 € ')
    print('when you fall on the same number you win 3*bet')
    print('when you fall on the same color you win bet/2')
    print('if your are not the same number or same color you loose your bet')

import random

import math

def name_choice():
    """this function allow the player to choose enter a name or pseudo """
    username=""
    while username =="": #if value of user is empty the loop continue
        username=input("please enter your name or pseudo")
        return username
        print("welcome on roulette game ",username," !")

def user_choice():
    """the function allow the player to choose a number between 0 and 49 ,
    if enter his not a number or enter his str return to choice"""
    number_choice=50 #for enter in a loop
    while number_choice < 0 or number_choice > 49:
        try:
            number_choice=int(input("enter number between 0 and 49 :")) #ask user a number and convert it in integer
        except ValueError: # if number_choice not a number
            print("your enter is not a number") #display error message
            number_choice = 50 #return in a loop
        if number_choice < 0 or number_choice >49:
            print("your enter is not included in range") #display error message  if number is out of range
    return number_choice


def computer_choice():
    """this function makes it possible to randomly a number """
    random_number= random.randrange(50) # choose a random number between 0 and 49
    return random_number

def rules():
    print("you begin the game with 100 € ")
    print("when you fall on the same number you win 3*bet")
    print("when you fall on the same color you win bet/2")
    print("if your are not the same number or same color you loose your bet")
