IF statement error new variable input python
Question: The problem here is that I just cant get python to check if Currency1 is in
string, and if its not then print that there is an error,but if Currency1 IS
in string then move on and ask the user to input Currency2, and then check it
again.


Answer: You were actually trying for:

    
    
    if type(Currency1) in (float, int):
       ...
    

but `isinstance` is better here:

    
    
    if isinstance(Currency1,(float,int)):
       ...
    

or even better, you can use the `numbers.Number` abstract-base class:

    
    
    import numbers
    if isinstance(Currency1,numbers.Number):
    

* * *

Although ... `Currency1 = str(raw_input(...))` will guarantee that `Currency1`
is a string (not an integer or float). Actually, `raw_input` makes that
guarantee and the extra `str` here is just redundant :-).

If you want a function to check if a string can be converted to a number, then
I think the easiest way would be to just try it and see:

    
    
    def is_float_or_int(s):
        try:
            float(s)
            return True
        except ValueError:
            return False
    

