Arjun Thakur has Published 1248 Articles

Global and Local Variables in Python?

Arjun Thakur

Arjun Thakur

Updated on 24-Nov-2022 05:40:27

There are two types of variables: global variables and local variables. The scope of global variables is the entire program whereas the scope of local variable is limited to the function where it is defined.Example def func(): x = "Python" s = "test" ... Read More

What do you know about the train with no engine India just launched?

Arjun Thakur

Arjun Thakur

Updated on 27-Apr-2022 11:55:32

Indian railway has recently launched a high-speed train, which has no engine. It’s named Train 18 or T18. Its first journey was from Delhi to Bhopal. T8 is the first high-speed Indian train, which ran with a speed of 160 km/h.The manufacturing of this train has been done in Chennai’s ... Read More

HTML5 Canvas Degree Symbol

Arjun Thakur

Arjun Thakur

Updated on 05-Apr-2022 12:35:42

For HTML5 Canvas degree symbol, try to run the following code −                          body {             margin:5em;             background:#eee;             text-align:center ... Read More

How to draw an oval in HTML5 canvas?

Arjun Thakur

Arjun Thakur

Updated on 16-Dec-2021 12:13:41

You can try to run the following code to draw an oval in HTML5 canvas −Example                                  // canvas          var c = document.getElementById('newCanvas');         ... Read More

How to resize Image in Android App?

Arjun Thakur

Arjun Thakur

Updated on 06-Jul-2020 19:40:02

This example demonstrate about How to resize Image in Android App.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.           ... Read More

Align flex items at the center of the container with CSS

Arjun Thakur

Arjun Thakur

Updated on 06-Jul-2020 11:26:45

Use the justify-content property with value center to align the flex-items to the center.ExampleYou can try to run the following code to implement the center valueLive Demo                    .mycontainer {             display: flex;     ... Read More

Align the flex items in the middle of the container in CSS

Arjun Thakur

Arjun Thakur

Updated on 06-Jul-2020 08:23:19

Use the align-items property with value center to align flex items in the middle.ExampleYou can try to run the following code to implement the center valueLive Demo                    .mycontainer {             display: flex;         ... Read More

Display the flex lines in the end of the container with CSS

Arjun Thakur

Arjun Thakur

Updated on 04-Jul-2020 08:10:53

Use the align-content property with value flex-end to set the flex lines in the end.ExampleYou can try to run the following code to implement the flex-end valueLive Demo                    .mycontainer {             display: flex;       ... Read More

Return the value of an attribute of the selected element using CSS

Arjun Thakur

Arjun Thakur

Updated on 04-Jul-2020 07:03:06

The attr() CSS function returns the value of an attribute of the selected element using CSSExampleYou can try to run the following code to implement the attr() function in CSSLive Demo                    a:before {content: " (" attr(href) ")";}                     Information Resource                Resource:Welcome to Qries          

CSS flex-flow Property

Arjun Thakur

Arjun Thakur

Updated on 04-Jul-2020 06:10:06

To set both the flex-direction and flex-wrap properties, use a single property flex-flowExampleYou can try to run the following code to implement the flex-flow property to set the direction and wrap property of flex −Live Demo                    .mycontainer {       ... Read More

1 2 3 4 5 ... 125 Next
Advertisements