Strings are characters or symbols. For example to put it in simple terms your name 'aku firman' would be a string. NOTICE the '' quotes.
But your age can be an integer. Say 20 is your age.
n = 20 meaning n is an integer.
But anything given between quotes can be considered as a string.
i.e n = '20' or n = "20" (Even double quotes can be used)
Here n is a string. Read more about strings here Strings explained
Also raw_input presents a prompt to the user gets input from the user and returns the data input by the user in a string. See the docs for raw_input
a = float(raw_input("masukkan a: 13.0"))
Here you don't input the value 13.0 to float() function rather you wait for the user to enter something with the prompt displayed on your cmd as masukkan a: 13.0
So if you want to get input from user and convert it to float.
For example try this in python interpreter:
To avoid confusion i'll seperate what you have to type in interpreter from it's corresponding output in interpreter since you are a newbie:
x=float(raw_input("masukkan a: 13.0\n"))
y=float(raw_input("masukkan b: 4.0\n"))
x/y
Along with output:
>>>x=float(raw_input("masukkan a: 13.0\n"))
masukkan a: 13.0
13
>>>y=float(raw_input("masukkan b: 4.0\n"))
masukkan b: 4.0
4
>>>x/y
3.25
But this
>>>x=float(raw_input("masukkan a: \n"))
masukkan a:
13
>>>y=float(raw_input("masukkan b:\n"))
masukkan b:
4
>>>x/y
3.25
See how the prompt changed. You get the idea right?
Also the \n makes you to enter input date in a newline.
raw_inputreturns an empty string, whichfloatrejects. I think you are meant to type in13.0not make it part of the prompt.