Python Forum
Receive Serial Data and store in different Variables in Python
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Receive Serial Data and store in different Variables in Python
#4
It depends on what the contents of k are here. For example, you could do something like this
k = "1,2,3"
a, b, c = k.split()
Make sure to provide enough detail for us to help (e.g. what k looks like).
Reply


Messages In This Thread
RE: Receive Serial Data and store in different Variables in Python - by micseydel - Dec-27-2018, 06:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to receive two passed cmdline parameters and access them inside a Python script? pstein 2 390 Feb-17-2024, 12:29 PM
Last Post: deanhystad
  Receive Input on Same Line? johnywhy 8 817 Jan-16-2024, 03:45 AM
Last Post: johnywhy
  Create X Number of Variables and Assign Data RockBlok 8 1,040 Nov-14-2023, 08:46 AM
Last Post: perfringo
  pyserial/serial "has no attribute 'Serial' " gowb0w 9 4,655 Aug-24-2023, 07:56 AM
Last Post: gowb0w
  How to store columns of a .csv in variables (when the .csv has no headers) ? hobbyist 6 1,361 Aug-18-2023, 02:06 PM
Last Post: deanhystad
  Python Serial: How to read the complete line to insert to MySQL? sylar 1 860 Mar-21-2023, 10:06 PM
Last Post: deanhystad
  How to continuously receive messages until specified to stop using Bleak jacobbreen25 3 2,229 Dec-28-2022, 04:25 PM
Last Post: jacobbreen25
  How can I add an end line character after every value that I receive? GiggsB 11 5,317 Mar-06-2022, 08:51 PM
Last Post: GiggsB
  How to receive webcam capture on spout? buzzdarkyear 2 2,700 Jan-12-2022, 02:26 PM
Last Post: buzzdarkyear
  python serial port barryjo 2 1,700 Dec-27-2021, 11:09 PM
Last Post: barryjo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020