silver2row

Trying duty_cycle for the __________ time?

Jan 27th, 2021 (edited)
799
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. import math
  3.  
  4. a = 0 # duty_cycle or percent or %
  5. b = 0.025 # period or cycles in time
  6. c = 0.1 # timing or time
  7.  
  8. b / c = a
  9.  
  10. print ("The duty_cycle equals: ", a)
  11.  
  12. # ANSWER: 25% or a = 25%
RAW Paste Data