0
print("---/\/\/\---") how to use this to represent a single resitor? Ohms law problem
7 Réponses
+ 7
I may be interpreting your question incorrectly, but here's what I think you mean:
--You want text inside like this--
text="your description"
print("--%s--" % text)
# %s is used to include variables into strings.
+ 6
Oh, well I don't know anything about resistors. Or a 'resitor'.
...Good luck!
+ 6
What language though. You may be having problems printing it because \ (backslash) was interpreted as an escape character. Doesn't seem like an issue in Python.
Or maybe you just want to store it in a variable and use it later... ?
resistor = "---/\/\/\---"
0
Sorry i have so many typos in my question 😢 will you please help me again?
0
oh wrong again sad 😢 btw thanks 😅
0
i got no prpblem printing that
0
Ohhhhh Thanks Guys.