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.

Italian language alphabets pronunciation grammar phrases vocabulary

 The Italian alphabet consists of 21 letters, with a few additional letters used in foreign words. Here's the Italian alphabet: 1. A (a)...