You're enclosing all your variables in single quotes, so you're comparing the string "a" with the string "b" rather than the floating point number contained in variable a with the same in variable b
Also worth pointing out:
This is your original code, to request two floating point numbers from the user
a = raw_input('podaj liczbę A : ')
b = raw_input('podaj liczbę B : ')
a = float(a)
b = float(b)
If you're in Python 2.x, you can instead use
I was corrected by abarnert in comments below. Just leaving it for edification:
I wouldn't suggest using input instead of raw_input and float. The latter guarantees that you get floats; the former could get, say, the result of calling __import__('os').system('rm -rf /'), which is probably something you don't want
a = input('podaj liczbę A : ')
b = input('podaj liczbę A : ')
If you're not, you may want to include a try/catch block that will force the variable to be of the type you require
a_verifying = True
while a_verifying:
a = input('podaj liczbę A : ')
try:
a = float(a)
a_verifying = False
except ValueError as e:
a = input('podaj liczbę A : ')
b_verifying = True
while b_verifying:
b = input('podaj liczbę B : ')
try:
b = float(b)
b_verifying = False
except ValueError as e:
b = input('podaj liczbę B : ')
'a'is the charactera-a(no quotes) is the variable namea... Sofloat('a')is wrong - you can't make a float from the lettera- it should befloat(a)whereawill be the content of what's been entered...