Friday, December 13, 2019

Python

Python :

Python is a programming language.

Python can be used on a server to create web applications.

What is Python?
Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.

It is used for:

web development (server-side),
software development,
mathematics,
system scripting.

Python was designed for readability, and has some similarities to the English language with influence from mathematics.
Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses.
Python relies on indentation, using whitespace, to define scope; such as the scope of loops, functions and classes. Other programming languages often use curly-brackets for this purpose.


To check if you have python installed on a Windows PC, search in the start bar for Python or run the following on the Command Line (cmd.exe):

C:\Users\Your Name>python --version
To check if you have python installed on a Linux or Mac, then on linux open the command line or on Mac open the Terminal and type:

python --version
If you find that you do not have python installed on your computer, then you can download it for free from the following website: https://www.python.org/

Python is an interpreted programming language, this means that as a developer you write Python (.py) files in a text editor and then put those files
into the python interpreter to be executed.

The way to run a python file is like this on the command line:

C:\Users\Your Name>python welcome.py
Where "welcome.py" is the name of your python file.

Let's write our first Python file, called helloworld.py, which can be done in any text editor.

welcome.py

print("Welcome!")

Simple as that. Save your file. Open your command line, navigate to the directory where you saved your file, and run:

C:\Users\Your Name>python welcome.py

The output should read:

Welcome!


The Python Command Line
To test a short amount of code in python sometimes it is quickest and easiest not to write the code in a file. This is made possible because Python can be run as a command line itself.

Type the following on the Windows, Mac or Linux command line:

C:\Users\Your Name>python
Or, if the "python" command did not work, you can try "py":
C:\Users\Your Name>py
From there you can write any python, including our hello world example from earlier in the tutorial:

C:\Users\Your Name>python
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello, World!")
Which will write "Hello, World!" in the command line:

C:\Users\Your Name>python
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello, World!")
Hello, World!
Whenever you are done in the python command line, you can simply type the following to quit the python command line interface:

exit()


Python Comments:
Comments can be used to explain Python code.
Comments can be used to make the code more readable.
Comments can be used to prevent execution when testing code.
Comments can be placed at the end of a line.
Comments does not have to be text to explain the code.
example:
 #This is a comment
print("Hello, World!")
Comments starts with a #, and Python will ignore them:


श्रीमद् भगवतगीते च्या बाबतीत सर्व माहिती.

*"श्रीमद् भगवतगीते" च्या बाबतीत सर्व माहिती.*

ॐ . कुणी कुणाला सांगितली..???
उ.- श्रीकृष्ण यांनी अर्जुनाला सांगितली.

ॐ . कधी सांगितली ???
उ.- आज पासून ७ हजार वर्षा पूर्वी सांगितली

ॐ. ईश्वरांनी कोणत्या दिवशी गीता सांगितली..???
उ.- रविवार च्या दिवशी...

ॐ. कोणत्या तिथि ला ???
उ.- एकादशी 

ॐ. कुठे सांगितली...???
उ.- कुरुक्षेत्रच्या रणभूमि वर...

ॐ. किती वेळा मध्ये सांगितली..???
उ.- ४५ मिनीटे..

ॐ. का सांगितली...???
उ.- कर्तव्या पासून भरकटलेल्या अर्जुनाला कर्तव्य शिकवण्यासाठी आणि पुढ्या येणाऱ्या पिढ्यांना धर्म, ज्ञान आणि कर्तव्य कर्म शिकवण्यासाठी.. !!!

ॐ. किती अध्याय आहेत?
उ.- एकूण १८ अध्याय.. !!!

ॐ. किती श्लोक आहेत?
उ.- ७०० श्लोक

ॐ. गीता मध्ये काय काय सांगितलेले आहे..?
उ.- ज्ञान-भक्ति-कर्म योग या मार्गांची विस्तृत व्याख्या केली आहे.., ह्या मार्गावर चालणाऱ्या व्यक्ती निश्चितपणे उच्चपदस्थ होतात..

ॐ. गीते ला अर्जुना शिवाय अजून कोणी कोणी ऐकलेले आहे.. ??? 
उ.- धृतराष्ट्र आणि संजय ने..

ॐ. अर्जुनाच्या आधी गीतेचे पावन ज्ञान कुणाला मिळाले होते.. ???
उ.- भगवान सूर्यदेवला..

ॐ. गीतेची माहिती कोणत्या धर्म-ग्रंथ मध्ये आहे.. ???
उ.- उपनिषदां मध्ये..

ॐ. गीता कोणत्या महाग्रंथाचा भाग आहे ???
उ.- गीता महाभारताचा एक अध्याय शांति-पर्व याचा एक हिस्सा आहे...

ॐ. गीता चे दूसरे नाव काय आहे...???
उ.- गीतोपनिषद

ॐ. गीतेचे सार काय आहे.. ???
उ.- प्रभु श्रीकृष्ण यांना शरण जाणे..

ॐ. गीते मध्ये कोणी किती श्लोक सांगितले आहेत ???
उ.- श्रीकृष्ण यांनीे- ५७४
अर्जुना ने- ८५
धृतराष्ट्र ने- १
संजय ने- ४० 
एकूण = ७००

अर्धवट ज्ञान योग्य ठरत नाही...

३३ करोड नाही.. ३३ कोटि (प्रकार) देवी देवता आहेत हिँदू धर्मा मध्ये....

कोटि = म्हणजे प्रकार ।।

देवभाषा संस्कृत मध्ये कोटि चेे दोन अर्थ होतात..

कोटि चा एक अर्थ म्हणजे *प्रकार* होय आणि दुसरा अर्थशास्राचा अर्थ करोड हा ही होतो...

आपल्या हिंदू धर्माचा चा दुष्प्रचार करण्यासाठी असा बनाव केला गेला की हिंदूंचे के ३३ करोड देवी देवता आहेत... आणि आज आपण पणं हेच बोलतो की आमचे ३३ करोड देवी देवता आहेत...

एकूण ३३ प्रकार चे देवी देवता आहेत हिँदू धर्मा मध्येे :-

१२ प्रकार आहेत.,
आदित्य, धाता, मित, आर्यमा, शक्रा, वरुण, अँश, विवास्वान, पूष, सविता, तवास्था, आणि विष्णु...!

८ प्रकार आहेत :-
वासु:, धर, ध्रुव, सोम, अह, अनिल, अनल, प्रत्युष आणि प्रभाष।

११ प्रकार आहेत :- 
रुद्र: हर, बहुरुप, त्र्यंबक,
अपराजिता, बृषाकापि, शँभू, कपार्दी, रेवात, मृगव्याध, शर्वा, आणि कपाली।

आणि 
अजून २ प्रकार आहेत अश्विनी आणि कुमार.. ।।

एकूण :- १२+८+११+२= ३३ कोटी 

 आपला धर्म ग्रंथ श्रीमद् भगवत गीता जो साक्षात भगवान कृष्णांनी सांगितलेले याची माहिती आपणा सर्वांना कळावी, म्हणून ही पोस्ट लिहिली, आवडल्यास पुढे नक्की अग्रेषित करावी आणि आयुष्यात एकदा तरी गीता वाचावी. 
🙏

Count the 3 in below image


Count the 3 from above image.

Answer : 18

Which of the above chain of 5 numbers will give the lowest sum?



Which of the above chain of 5 numbers will give the lowest sum?

Answer : 6+7+6+5+7 = 31

Solve from image of pyramid - Which is the top view of this pyramid ?






Which is the top view of this pyramid ?

1,2,3,4

Answer: 3 
(Hint:Check color of four lines it should be in same sequence)

Write a C++ program to find the smallest number that can be formed from given sum of digits and number of digits.

Find smallest number with given number of digits and sum of digits
Write a C++ program to find the smallest number that can be formed from given sum of digits and number of digits.

#include  
using namespace std;
 
// Prints the smallest possible number with digit sum 's'
// and 'm' number of digits.
void findSmallest(int m, int s)
{
    // If sum of digits is 0, then a number is possible
    // only if number of digits is 1.
    if (s == 0)
    {
        (m == 1)? cout << "Smallest number is " << 0
                : cout << "Not possible";
        return ;
    }
 
    // Sum greater than the maximum possible sum.
    if (s > 9*m)
    {
        cout << "Not possible";
        return ;
    }
 
    // Create an array to store digits of result
    int res[m];
 
    // deduct sum by one to account for cases later
    // (There must be 1 left for the most significant
    //  digit)
    s -= 1;
 
    // Fill last m-1 digits (from right to left)
    for (int i=m-1; i>0; i--)
    {
        // If sum is still greater than 9,
        // digit must be 9.
        if (s > 9)
        {
            res[i] = 9;
            s -= 9;
        }
        else
        {
            res[i] = s;
            s = 0;
        }
    }
 
    // Whatever is left should be the most significant
    // digit.
    res[0] = s + 1;  // The initially subtracted 1 is
                     // incorporated here.
 
    cout << "Smallest number is ";
    for (int i=0; i        cout << res[i];
}
 
// Driver code
int main()
{
    int s = 9, m = 2;
    findSmallest(m, s);
    return 0;
}

Output :
Smallest number is 18

Thursday, December 12, 2019

What is education?

What is education?

Education:

Meaning :"the process of receiving or giving systematic instruction, especially at a school or university."

Education is the process of facilitating learning, or the acquisition of knowledge, skills, values, beliefs, and habits. Educational methods include teaching, training, storytelling, discussion and directed research. Education frequently takes place under the guidance of educators, however learners can also educate themselves.

Types of education:
1) Formal Education
2) Informal Education
3) Non-formal Education

Education also means helping people to learn how to do things and encouraging them to think about what they learn.

It is also important for educators to teach ways to find and use information. Through education, the knowledge of society, country, and of the world is passed on from generation to generation.

Importance of Education:
1. Increase in literacy rate
2. Level of moral and ethical values
3. Vital role in the development of countries
4. Awareness of rights and responsibilities
5. Education produces good citizens
6. Education is the only key to success in the life of an individual.
7.  Education promotes the national interest.

The purpose of education in a given time and place affects who is taught, what is taught, and how the education system behaves.
The education system is a group of institutions it has ministries of education, local educational authorities, teacher training institutions, schools, universities, etc.
whose primary purpose is to provide education to children and young people in educational settings.
Education is also becoming a commodity no longer reserved for children. Adults need it too.

Tuesday, December 10, 2019

What is Gold?

What is Gold?

Gold is a chemical element with the symbol Au.

Atomic number is 79.

In its purest form, it is a bright, slightly reddish yellow, dense, soft, malleable, and ductile metal.
It is one of the least reactive chemical elements and is solid under standard conditions.
gold is a precious metal that has been used for coinage, jewelry, and other arts throughout recorded history.

Because of its unique qualities, gold has been the one material that is universally accepted in exchange for goods and services.gold is still accepted by all nations as a medium of international payment.

Because pure gold is too soft to resist prolonged handling, it is usually alloyed with other metals to increase its hardness for use in jewelry, gold-ware, or coinage. Most gold used in jewelry is alloyed with silver, copper, and a little zinc to produce various shades of yellow gold or with nickel, copper, and zinc to produce white gold. The color of these gold alloys goes from yellow to white as the proportion of silver in them increases; more than 70 percent silver results in alloys that are white. Alloys of gold with silver or copper are used to make gold coins and gold-ware, and alloys with platinum or palladium are also used in jewelry. The content of gold alloys is expressed in 24th, called karats; a 12-karat gold alloy is 50 percent gold, and 24-karat gold is pure.

Different Types of Gold Karats

Karat is the term used to measure the purity of gold. Before we understand the difference between 24 K, 22 K and 18 K gold, you must know what karat stands for. Karat is basically a unit used to measure the purity of gold. The higher the karat age, the purer the gold. Here’s a simple guide to understanding the difference between 24 K, 22 K and 18 K gold.

24 K gold
24 k gold is also called pure gold or 100 per cent gold. This means that all 24 parts in the gold are all pure gold without traces of any other metals. It is known to be 99.9 per cent pure and takes on a distinct bright yellow color. There is no higher form of gold than 24 K and you must be aware of this before you go to a dealer who might tell you that they’re selling you 25 K or 26 K gold. Since this is the purest form of gold, it is naturally more expensive than 22 K or 18 K gold. However, this type of gold is lesser in density as compared to gold of a lower karat age which makes it soft and pliable. Hence, it is not suited for regular forms of jewelry. Coins and bars are mostly bought of 24 K gold purity. 24 K gold is also used in electronics and medical devices such as those used for children suffering from ear infections who are fitted with gold tympanist tubes that are known to improve aeration of the middle ear.

22 K gold
22 K gold jewelry implies that 22 parts of the jewelry amounts to gold and the balance 2 parts are some other metals. This kind of gold is commonly used in jewelry making. In 22 K gold, of the 100 per cent, only 91.67 per cent is pure gold. The other 8.33 per cent comprises metals like silver, zinc, nickel and other alloys. It is this addition of metals that make the texture of gold harder thereby making the jewelry durable. However, you must know that although this can be used to make plain gold jewelry, 22 K gold isn’t preferable for diamonds and heavily studded jewelry.

18 K gold
18 K gold is 75 per cent gold mixed with 25 per cent of other metals like copper or silver etc. Usually studded jewelry and other diamond jewelry is made in 18 K gold. This kind of gold is less expensive compared to 24 K and 22 K. This one has a slightly dull gold color. Recognizing 18 K jewelry is rather simple – you will see the item stamped with 18 K, 18 K, 18 K or a variation similar to these. At times, 18 K gold is marked by 750, 0.75 or a stamp similar to these in order to symbolize that the jewelry contains 75 per cent gold.

24 karat = 99.5% pure gold and above
22 karat = 91.7 % gold
18 karat = 75.0 % gold
14 karat = 58.3 % gold
12 karat = 50.0 % gold
10 karat = 41.7 % gold

Gold does not react with oxygen at any temperature and, up to 100 °C, is resistant to attack from ozone.

To ensure the purity of gold by BIS look on the hallmarked gold jewelry:
1. BIS Mark;
2. Purity in Karat and fineness;
3. Assaying and Hallmarking Center's identification mark/number;
4. Jeweler's Identification mark/number

What is Forex?

What is Forex?

Forex, also known as foreign exchange, FX or currency trading,

The foreign exchange market (Forex, FX, or currency market) is a global decentralized or
over-the-counter (OTC) market for the trading of currencies.
This market determines foreign exchange rates for every currency.
It includes all aspects of buying, selling and exchanging currencies at current or determined prices.
Its continuous operation: 24 hours a day except for weekends, i.e., trading from 22:00 GMT on Sunday (Sydney) until 22:00 GMT Friday (New York);
The foreign exchange market assists international trade and investments by enabling currency conversion.
In a typical foreign exchange transaction, a party purchases some quantity of one currency by paying with some quantity of another currency.
Just like stocks, you can trade currency based on what you think its value is.
The US dollar is by far the most traded currency.
Benefit:  exchange rates change all the time, and Forex traders attempt to profit from these changes

What is visa?

What is visa?

Visa full form :

A visa stands for Visitor’s Intention to Stay Abroad , is a document showing that a  person is authorized to enter or leave the territory for which it was issued,subject  to permission of an immigration official at the time of actual entry.
The  authorization may be a document, but more commonly it is a stamp endorsed
in  the applicant's passport.
Some countries do not require a visa in some situations,
such as  a result of  reciprocal treaty arrangements.
The country issuing the visa typically attaches  various conditions of stay, such as the territory covered by the visa, dates of  validity, period of stay, whether the visa is valid for more than one visit, etc.
A visa generally gives non-citizens clearance to enter a country and to remain there  within specified constraints, such as a time frame for entry, a limit on the time  spent in the country, and a prohibition against employment.

Types and names of visas :
Transit visas
Short-stay or visitor visa
Long-stay visa
Immigrant visa
Official visa
On-arrival visa
Electronic visa

Featured posts

Happy Independence Day August 15th

Happy Independence Day August 15th  Here's a message for India's Independence Day (August 15th): "शुभ स्वतंत्रता दिवस! आजादी की...

Popular posts