Python Forum
How to convert value to defined number?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to convert value to defined number?
#3
Thank you Larz60+ for the reply!

After a few hours of trying I need some more help. Wall

musicTextPitch = "c4 e4 g4 c5"
Which need to be seperated, converted and added to this list:
musicNumberedPitch = [40, 44, 47, 52]

The conversion list/dictionary is:
{'c4':40, 'e4':44, 'g4':47, 'c5':52}
How do I glue this together?
Reply


Messages In This Thread
RE: How to convert value to defined number? - by philipbergwerf - Dec-07-2019, 08:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  convert % to a number Nickd12 2 2,153 Sep-18-2020, 12:18 AM
Last Post: deanhystad
  python library not defined in user defined function johnEmScott 2 3,984 May-30-2020, 04:14 AM
Last Post: DT2000
  Find Average of User Input Defined number of Scores DustinKlent 1 4,484 Oct-25-2019, 12:40 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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