I need help please


#1

whats wrong??

#This is a multilane Comment! This Program will roll a pair

from randint import random
from time import sleep

def get_user_guess():
  guess = raw_inpu(int("Guess a number: "))
  return guess

def roll_dice(number_of_sides):
 	first_roll = randint(1, number_of_sides)
  second_roll = randint(1, number_of_sides)
  max_val = number_of_sides * 2
  print "The maximum possible value is: %d" % max_val
  guess = get_user_guess()
  
  if guess > max_val:
    print ("Your guessed number is invalid!")
    
    else:
      print ("Rolling...")
      sleep(2)
      print ("The first roll is: %d") % first_roll
      sleep(1)
      print ("The second roll is: %d") % second_roll
      sleep(1)
      total_roll = first_roll + second_roll
      print ("The total value is: %d") % total_roll
      print ("Result...")
      sleep(1)
      
      if guess == total_roll:
        print ("You won!")
        
        else:
          print ("You lose")
          
          
roll_dice(5)

#2

you have several indent issues, for example here:

 	first_roll = randint(1, number_of_sides)
  second_roll = randint(1, number_of_sides)

and here:

  if guess > max_val:
    print ("Your guessed number is invalid!")
    # else is wrongly indent, else should always be
    # after if or elif. 
    else: 

and here:

from randint import random

you attempt to import random function from randint package, are you sure that is right?