0

print("---/\/\/\---") how to use this to represent a single resitor? Ohms law problem

26th Aug 2018, 1:03 PM
Vncnt Lgd
Vncnt Lgd - avatar
7 odpowiedzi
+ 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.
26th Aug 2018, 1:35 PM
Ahri Fox
Ahri Fox - avatar
+ 6
Oh, well I don't know anything about resistors. Or a 'resitor'. ...Good luck!
26th Aug 2018, 1:53 PM
Ahri Fox
Ahri Fox - avatar
+ 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 = "---/\/\/\---"
26th Aug 2018, 3:01 PM
Hatsy Rei
Hatsy Rei - avatar
0
Sorry i have so many typos in my question 😢 will you please help me again?
26th Aug 2018, 1:38 PM
Vncnt Lgd
Vncnt Lgd - avatar
0
oh wrong again sad 😢 btw thanks 😅
26th Aug 2018, 1:55 PM
Vncnt Lgd
Vncnt Lgd - avatar
0
i got no prpblem printing that
26th Aug 2018, 2:18 PM
Bebida Roja
Bebida Roja - avatar
0
Ohhhhh Thanks Guys.
26th Aug 2018, 10:31 PM
Vncnt Lgd
Vncnt Lgd - avatar