Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.62 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. while b==1:
  2.  
  3.         num=raw_input('Ingrese el numero 1: ')
  4.         num2=raw_input('Ingrese el segundo numero 2: ')
  5.         n=len(num)
  6.         n2=len(num2)
  7.  
  8.         if n==n2:
  9.                 for y in range (n):
  10.                         for k in num:
  11.                                 for m in range (n):
  12.                                         t=datos[m][0]
  13.                                         if k==m:
  14.                                                 temp1=datos[m][1]
  15.                                                 break                          
  16.                         for u in num2:
  17.                                 for m in range (n):
  18.                                         t=datos[m][0]
  19.                                         if k==m:
  20.                                                 temp2=datos[m][1]
  21.                                                 break
  22.                         for d in range (n):
  23.                                 a1=temp1    #aqui el donde quiero sacar el caracter de la cadena 1
  24.                                 a2=temp2[d]  # y aqui de la 2
  25.                                 if a1==a2:
  26.                                         ex_or+=0
  27.                                 else:
  28.                                         ex_or+=1  
  29.                 b=2
  30.         else:
  31.                 print"La"
  32.                 b=1