Sort by

recency

|

51 Discussions

|

  • + 0 comments

    I have created rummy wealth website i need to improve its home page can anyone tell me how to improve its user interface.

  • + 0 comments

    Hi, I have made a gaming related website on https://cookieclickerunblocked.us and need your suggestions how i can improve gaming code for this site.

  • + 0 comments

    I have never played Dota 2. And in general, all video games have really bothered me lately. I decided to try something new, found a reliable online casino at www.casinocrawlers.com and decided to gamble. I found it interesting that this is a cool way to combine business with pleasure, as there is a chance to win money.

  • + 1 comment
    with open('trainingdata.txt') as file:
        lines = file.readlines()
    
    heroes = {}
    for line in lines:
        line = line.strip().split(',')
        won = int(line[-1])
        for i,h in enumerate(line[:-1]):
            if h not in heroes:
                heroes[h] = {'played':0,'won':0}
            heroes[h]['played'] += 1
            if (i//5 == 0) and (won ==1): # h in 1st team and 1st team won
                heroes[h]['won'] += 1
            if (i//5 == 1) and (won ==2): # h in 2nd team and 2nd team won
                heroes[h]['won'] += 1
    
    for hero,d in heroes.items():
        heroes[hero]['p_won'] = round(d['won']/d['played'],3)
        
    N = int(input())
    for _ in range(N):
        line = input().strip().split(',')
        t_1,t_2 = line[:5],line[5:]
        p_1 = sum([heroes[h]['p_won'] for h in t_1])
        p_2 = sum([heroes[h]['p_won'] for h in t_2])
        if p_1 > p_2:
            w_pred = 1
        else:
            w_pred = 2
        print(w_pred)
    
  • + 0 comments

    This is really diffifult to understand , can anyone help me to figure out the solution for the given problem ? नाम लिखकर वशीकरण