Блог пользователя ManGeo

Автор ManGeo, история, 5 лет назад, По-английски

This is a classic case which we encounter in the world of programming.

Different languages provide various methods to undertake this operation.

Well in my case, I believe that Python provides a very easy method to undertake this:

CASE-1:

A primitive way arises when the number of inputs are known like 3 innputs,

Then we may use,

Code:

a, b, c = map(int,input().split())

CASE-2:

What about the case, when number of inputs is unknown?

You might be familiar with the 'sort()' built- in function. Well that comes handy here.

Code:

a = list(map(int,input().split()))

a.sort()

Here 'sort()' gives our task a nice outlook too.

Well, hope you might have learnt something new today. I know many of you might already be familiar with it but it is always helpful if you have a glance at things at which you might be perfect too.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -10
  • Проголосовать: не нравится

Автор ManGeo, история, 5 лет назад, По-английски

Hello everyone, especially my Indian friends...

Today is a very special day in the great land of India. It is Deepawali/ Diwali, the festival of lights.

I have heard a lot about Deepawali/Diwali.

This festival marks a very historical event in Hindu and Indian tradition and culture.

So try to bring the light of knowledge into someone in darkness this Deepawali/Diwali, by trying your best to teach someone atleast the basics of any programming language to your pals who may not be familiar with them.

Thanks for reading my post.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +23
  • Проголосовать: не нравится

Автор ManGeo, история, 5 лет назад, По-английски

Hello everyone.

I am again before you with another article. We all have varied options before us. No two people in this world will have same options before them.

WHAT WILL YOU DO?

Probably select the best option of your set, which might be most suited you believe is for you, or which you believe is your passion. We also have the same case in the world of programming.

Not everyone in this world would have oppurtunities to learn programming, coding even if they wanted to. Financial constraints, lack of infrastructure in their hometowns, lack of guidance and many more are. If you are reading this I atleast believe you are not in the situation of those who do not even have the devices to access this site, to access this blog.

Similarly even if you could become a coder, there are still many odds against you. 90% of the coders in this world are not aware of not more than 1-2 programming languages, but out there you have hundred's. I am not saying it is a huge disadvantage or the odds are in the favour of peope who know 5-7. But I am talking about the constraints. Even if you have decided to become a ultra-professional coder and exhaust all what can go inside a computer, it costs you time, your health, your mental well being, your personal and social life which we cannot compromise on. We all have responsibilities and cannot just sit befor a computer all day. If you do you are a MANIAC .

The best option I believe is to make the best out of your accumulated knowledge and try to provide in the best results possible. Those results may not be the best, but surely you would definitely be contributing to the goodwill of the society. Knowledge should not be considered as an instrument for money-making, the tool for your professional career. It is beyond all that. People who have narrow minded thinking usually consider education, knowledge to be a money-vending machine.

Recently I came across a contest at codeforces wherein the writer had decided to pledge a certain amount of his earnings for charity. This is progressive coding, Coding for a cause. Not like those selfish maniacs who consider just about themselves, who do not wish to impart their knowledge to others.

All I wanted to convey is that you might be one of those Lucky Few in your hometowns who may have access to education, infra, finance etc. So try to utilise all this to develop your skills and knowledge and always do something helpful for the society.

Be a better human than yesterday .....

Полный текст и комментарии »

  • Проголосовать: нравится
  • -40
  • Проголосовать: не нравится

Автор ManGeo, история, 5 лет назад, По-английски

Hello everyone, Welcome to the era of new generation coding. (Note: This particular blog is exclusively for freshers. The purpose of this blog is to provide a simple introductory picture of coding).

Before going into world of coding, let us familiarise with some basic terminology.

Syntax — Any coding language has a dictionary like every other verbal human languages. Syntax defines the statements of a computer language. Syntax in itself is a study of how words, phrases need to be arranged to form meaningful statements. In computer language syntax provides us a pre-defined structured way to code our programmes

Let us understand the meaning of an input first. Many of you might be already aware of it. Input basically is a language aided command usually provided by users, system programmers for running programmes. Without an input there would not be an inpuyt in practical sense. However some advanced programmes and softwares are in development which require virtually no input. Some are already around us, but input conyinues to be the basic term in any programming interface.

Be it in C, C++, Python etc. input is basically represented by 'int' term. Only the way it is written (like inside curly brackets...) is case sensitive in various languages(that's the designer's way). But in Python we have no restriction (except for non caps) and we can write straightforward — input.

But here is the catch-

Input is an in-built function in almost all major programming languages, but still we need to make it clear of our intentional arbitrary variable as an input to programme or an OS we are about to run, How? Again, this is case sensitive: In Python we make it clear as — input() .

Now go to your notepad, and scribble a basic command:

a = input()

b = input()

print(a,b)

(Here a, b are our variables, = is an operator which you will soon study, input, print are in-built functions.)

Assign almost anything to it (in this case to a and b successively) and you will have your printed output in a single line as we have not mentioned it to print in successive lines. But for today that is sufficient. Successive line printing is a piece of cake if you come to know about the basic python syntax and functions.

That's all for today. Hope you will persist in your learning of basic programming.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -28
  • Проголосовать: не нравится

Автор ManGeo, история, 5 лет назад, По-английски

We live in a steadily upgrading society. Problem solving and algorithmic thinking is an art which has steadily defined human progress over quite some time. Although this art has defined progress over centuries, the computer age has significantly highlighted it as a progressive entity rather than a passive one. Many people believe that this is the era of rapid technological advancement. Day after day each sector of industry is undergoing automation advancement, thanks to the surplus of computer science engineers and software professionals. While monitoring closely we find changes, we may find rapid development, but the reality is quite different. It is definitely a hidden fact far from our reach, now. Problem solving is an art humans have developed over millenniums. We are millennials in our thought evolution. Today every country's education system is competitive. Every job prospect competitive. Humans have become competitive to achieve short term goals of name and fame, with their only focus on a long-term goal being financial stability and dominion over others. Automation and artificial intelligence have made many core difficult processes simpler. Various simulators provide us an early picture of events, scientific phenomenon and industrial processes even before their start and completion. However, let us look at another facet. The core of every computer, electronic devices was designed in the 18th, 19th and 20th centuries. This was during the peak of industrial revolution where automation had no practical sense.

If we look over the past few decades there has been advancement but only in miniature designing, app development, social networking, software and IT related prospects. But the truth is we have not advanced any further than we were in 19th and 20th century. Back then problem solving is treated as an art, a way of progress, a way of light, a way of life. But today, it is considered just to be a financial prospect. This is the same case with the education systems over many countries. Various olympiads and entrance exams only try to test a student’s scholastic aptitude but not his scientific temper. There is difference between scholastic aptitude and scientific temper. Every human can be trained to achieve any level of scholastic aptitude biasing students who may not have the resources or guidance to achieve it. Thus, we have to direct our problem solving to a better path. Automation is one of the biggest gifts of problem solving. But it does not mean total reliance. We need to come up with it all into a next level, say suppose:

An automation code with timely human interference.

We may have developed it or may not. But everything needs progress. So was the case with submarines in the 15th and 16th centuries before their actual deployment in late 19th and early 20th centuries.

That's it for today. I have shared a blog in a philosophical way but looking forward to post algorithm of different situations and problems which may come handy to new learners in near future.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -11
  • Проголосовать: не нравится