By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,421 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,421 IT Pros & Developers. It's quick & easy.

Can a string attached to a dictionary key and sent through serial port.

P: 2
my.dict = {
'ns': "next station is"
}
I wrote a code for serial communication, and the code is working. If i send the key 'ns' through serial port to other pc,the value "next station is" printing on the screen.
My dought is, can i send a string with the key.
ex: 'ns' abcd.
if i send 'ns' abcd through serial port, on the other pc it has to print as next station is abcd.
Sep 20 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.