Python Figlet

6 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€64.94
List Price:  €92.78
You save:  €27.83
£55.57
List Price:  £79.40
You save:  £23.82
CA$95.27
List Price:  CA$136.11
You save:  CA$40.83
A$107.88
List Price:  A$154.13
You save:  A$46.24
S$94.55
List Price:  S$135.08
You save:  S$40.52
HK$547.57
List Price:  HK$782.28
You save:  HK$234.71
CHF 63.42
List Price:  CHF 90.61
You save:  CHF 27.18
NOK kr759.63
List Price:  NOK kr1,085.23
You save:  NOK kr325.60
DKK kr484.38
List Price:  DKK kr692.01
You save:  DKK kr207.62
NZ$117.46
List Price:  NZ$167.80
You save:  NZ$50.34
د.إ257.02
List Price:  د.إ367.19
You save:  د.إ110.16
৳7,682.93
List Price:  ৳10,976.08
You save:  ৳3,293.15
₹5,837.41
List Price:  ₹8,339.52
You save:  ₹2,502.10
RM331.26
List Price:  RM473.25
You save:  RM141.99
₦99,285.71
List Price:  ₦141,842.81
You save:  ₦42,557.10
₨19,466.20
List Price:  ₨27,810.04
You save:  ₨8,343.84
฿2,553.28
List Price:  ฿3,647.70
You save:  ฿1,094.41
₺2,262.39
List Price:  ₺3,232.12
You save:  ₺969.73
B$349.43
List Price:  B$499.21
You save:  B$149.77
R1,335.92
List Price:  R1,908.54
You save:  R572.62
Лв126.45
List Price:  Лв180.65
You save:  Лв54.20
₩94,634.34
List Price:  ₩135,197.71
You save:  ₩40,563.37
₪258.03
List Price:  ₪368.63
You save:  ₪110.60
₱3,943.57
List Price:  ₱5,633.91
You save:  ₱1,690.34
¥10,600.67
List Price:  ¥15,144.47
You save:  ¥4,543.79
MX$1,161.53
List Price:  MX$1,659.40
You save:  MX$497.87
QR255
List Price:  QR364.31
You save:  QR109.30
P959.59
List Price:  P1,370.91
You save:  P411.31
KSh9,203.68
List Price:  KSh13,148.68
You save:  KSh3,945
E£3,310.52
List Price:  E£4,729.52
You save:  E£1,419
ብር3,976.27
List Price:  ብር5,680.63
You save:  ብር1,704.36
Kz58,526.41
List Price:  Kz83,612.74
You save:  Kz25,086.33
CLP$68,581.80
List Price:  CLP$97,978.20
You save:  CLP$29,396.40
CN¥506.04
List Price:  CN¥722.95
You save:  CN¥216.90
RD$4,144.87
List Price:  RD$5,921.50
You save:  RD$1,776.62
DA9,443.17
List Price:  DA13,490.83
You save:  DA4,047.65
FJ$158.28
List Price:  FJ$226.12
You save:  FJ$67.84
Q545.87
List Price:  Q779.86
You save:  Q233.98
GY$14,645.83
List Price:  GY$20,923.51
You save:  GY$6,277.68
ISK kr9,762.20
List Price:  ISK kr13,946.60
You save:  ISK kr4,184.40
DH709.20
List Price:  DH1,013.19
You save:  DH303.99
L1,234.28
List Price:  L1,763.34
You save:  L529.05
ден3,991.30
List Price:  ден5,702.11
You save:  ден1,710.80
MOP$564.10
List Price:  MOP$805.89
You save:  MOP$241.79
N$1,325.35
List Price:  N$1,893.44
You save:  N$568.09
C$2,576.69
List Price:  C$3,681.15
You save:  C$1,104.45
रु9,334.54
List Price:  रु13,335.63
You save:  रु4,001.09
S/259.58
List Price:  S/370.84
You save:  S/111.26
K267.89
List Price:  K382.72
You save:  K114.82
SAR262.49
List Price:  SAR375
You save:  SAR112.51
ZK1,765.85
List Price:  ZK2,522.76
You save:  ZK756.90
L322.98
List Price:  L461.43
You save:  L138.44
Kč1,645.46
List Price:  Kč2,350.75
You save:  Kč705.29
Ft25,709.21
List Price:  Ft36,729.02
You save:  Ft11,019.81
SEK kr749.87
List Price:  SEK kr1,071.30
You save:  SEK kr321.42
ARS$60,034.20
List Price:  ARS$85,766.82
You save:  ARS$25,732.62
Bs483.70
List Price:  Bs691.04
You save:  Bs207.33
COP$271,296.95
List Price:  COP$387,583.68
You save:  COP$116,286.73
₡35,581.11
List Price:  ₡50,832.34
You save:  ₡15,251.22
L1,728.07
List Price:  L2,468.78
You save:  L740.71
₲516,441.87
List Price:  ₲737,805.73
You save:  ₲221,363.85
$U2,647.22
List Price:  $U3,781.90
You save:  $U1,134.68
zł280.50
List Price:  zł400.73
You save:  zł120.23
Already have an account? Log In

Transcript

All right, so welcome back again my name is Jessie and it is one of tutorial we try to see how to work with a very nice package coffee. So quickly it is a very nice package that has several ports for Python for no GS for Julia an interpreter programming languages. So we try to see how to work with figure it for your CLM gives you a policy language to add some beautification and some fancy stuff to it. Can you speak to in case you're working on Python, just go pip install Piglet, and then get your work? No, no, just go npm install Piglet and then also for Julia, I can also use an install with this particular option. Let's see how to work with it in Python right in an moodiness.

So let's see how it works. I'm just going to go to my terminal. I just go to PIP three, install media Python three, install pi. fig. That right? If it says how to install it to work with it, so was installed.

I'm just going to copy my demo. Let's take it bigger. When he seemed pleased he advocated going to create a file in the new economy. But the simplest way that she's going to go it from Python three is going to from from pi, fake lit, because it's a perturbation input. Later late, right? That is what we need, right?

So we this particular option, we have to do some interesting stuff. So let's check what it is speak. Let us for us, let us figure it. Now you can see audio stuff so we can run the test. We can justify stuff, we can set the font, and then you can do some basic stuff. But most of the time, you'll be using this particular notice to render the test within our terminal.

Very interesting. Now let's see a simple way. So I'm just going to create a variable called F is equal to F, then I'll pass in my test, right? So this is going to be the F. Now create a fitness class to initialize it in our passing wait about this guy just give me this straight away without passing any stuff. They're not giving me To render something like I just print it out like this, and go it F dot render test, which is the same thing as the one we had here. And that test here, this render test here, right did not pass in, that was like this, I want to render.

So what this do I want to render, you see? Bowden see that, right? To see if I see this one now, and I run it with this option is going to relate to it for us right? To do this, you're like, very, very aggressive. How to work with figurative very simple, we're just going to import it from here, then it is going to initialize it is to set a variable, then use that F that variable to render that particular test right. Very interesting.

So this is going to keep the standard format which is St. Guess I want to slide it Yes, come back to the same thing I did. Then are passing the font here. And I'll just go with slant. phalguni slant is going to slant the entire stuff right come up to the same thing, run the same thing now. So that's on us slight edits, right?

Very interesting. So with phycological Internet of Things, so by default is going to use the standard format, which is this long one. And then the other one is going to change the font you can just use this right from the very first how to work with Phyllis, can you use it inside UCLA. Now this is a minor second switch in case you also want to add some colors to it, there is just a normal default white color. What if I want to add some colors to suit our colors just come back to the same thing, then use 10 color as we learned earlier on, it's going to be from 10 color. Right, then a good input.

Secrets are put to correct any of the input to see print. Then can you see print to bring the color that I want to I'll do the same thing that I did, which was seems pixelated I created. Then I'll come back to the same render notice but instead of using print, I just come back and use the seep into the colored print as we like to do Then are passing that particular color to the color. What is this about blue. So in case I want blue is passing the blue here, then now I can see it in Iran, it's just giving us the wonderful color. So that's how to add colors to your fill it very interesting.

So just reach the point coming from Tim Keller, Canada. Step two is to have a blue. And it gives you a different list of all the features that can work with them color, we can also use it as a basic idea. So let's copy all of these things inside our file here so that I can have it so that I can use later on. I'm going to sit inside my miscellaneous, please. So let's call it us.

Sick. Let's tweet this pie. Did I just come back and just do it from Thai pig. Let's put it that is all done. I'm just going to create my variable, which is going to be the singlet class. Then I wanted to be slanted, I just go with this standard, then I can just print it out to print a particular body to F dot render.

Test, supposed to be granted test, not passing the test, I want to whether it's going to be Gordon, sila to write. Interesting, very interesting. So that is the basic idea that if I see right now, and I want to run the contest, come back to my terminal, which is simply that I have. So let me make it better. Right. So this run a particular file for Python three, then my two and this is going to print it out perfectly for us to Python three Piglet tweet, very intuitive, so just how to work with it.

This in case you want to render this process in case I want to add a color to it that is used to see print. This article is true. So let's get a print. adding color to adding color So to add a color, you just come back to the same place, take a use color aroma, okay, use the same color. So from Tim color, input c prints or can use color it gives you want, then I just pass it the same thing that I had here. Part A to the interviewer to see it be rendered choice passing a particular color, give it a color like green.

I see if I save it. And now we can run it here, would you see the two of them? So let's expand it because this would expand bigger so I can see what agenda there are run it again, we're going to have it twice, right. So this is the one with our color, and this is the one with the color. That's how to work we figured even Python to illustration try to see how to use the same template in Julia. Thank you and if you next session, stay blessed

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.