Advertisement
silver2row

Trying duty_cycle for the __________ time?

Jan 27th, 2021 (edited)
1,080
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  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%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement