Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rising edge of detection
#6
Quote:i have another question, how to do to have only two number after the comma on a variable?
If I understand correctly:
# As tuple
myvariable = (1, 2)
myothervariable = ('Tom', 'Dick')

# as list:
myvariable = [1, 2]
myothervariable = ['Tom', 'Dick']
Reply


Messages In This Thread
rising edge of detection - by peter14 - Dec-19-2018, 03:46 PM
RE: rising edge of detection - by Larz60+ - Dec-19-2018, 03:56 PM
RE: rising edge of detection - by peter14 - Dec-19-2018, 08:08 PM
RE: rising edge of detection - by Larz60+ - Dec-20-2018, 01:05 AM
RE: rising edge of detection - by peter14 - Dec-20-2018, 09:20 AM
RE: rising edge of detection - by Larz60+ - Dec-20-2018, 03:52 PM
RE: rising edge of detection - by peter14 - Dec-23-2018, 07:09 PM
RE: rising edge of detection - by peter14 - Dec-27-2018, 10:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Networkx: Visualize an edge weight with a bubble/circle uvw 0 2,085 Sep-01-2021, 06:26 AM
Last Post: uvw
Photo Setting Marker Edge Color In Plotting JoeDainton123 0 2,848 Oct-26-2020, 10:48 PM
Last Post: JoeDainton123
  How do I apply a Gaussian blur to a particular edge of geometry in Matplotlib? hbolandi 0 2,069 Feb-02-2020, 06:08 PM
Last Post: hbolandi
  Randomise network while maintaining topology of nodes using edge-swap approach Tom1988 3 4,226 May-25-2017, 10:59 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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