Let's try changing some statements to check the data types of s and n. This can come in handy when you want to want your script to know for sure what it is receiving from another device.
# convert_try_this from microbit import * sleep(1000) s = "1234" n = 1234 print("s =", s) ts = type(s) # <- change print("Type of s: ts =", ts) # <- change print() print("n = ", n) tn = type(n) # <- change print("Type of n: tn =", tn) # <- change print()