Category Archives: Programming (en)

JavaScript – comments

A comment is a piece of code that is not interpreted. There are multi-line comments and single-line comments. Multiline comment starts with /* and ends with */ JavaScript code /* a comment for a few lines */ JavaScript code A … Continue reading

Posted in Javascript (en) | Leave a comment

JavaScript – good manners

In JavaScript, it is customary to name variables in small letters (if the name is one word) – cat; If the variable name consists of two words, then camel case notation is used, i.e. the first word is written in … Continue reading

Posted in Javascript (en) | Leave a comment

JavaScript – Basic Operators

Comparison operator > / < If we write 2 < 6 , we thus ask the question, is it true or not? The answer can be in the form of boolean values – True / False. true > false Equality … Continue reading

Posted in Javascript (en) | Leave a comment

JavaScript – first impression

Java programming language or Java script – JavaScript – was created by a fun programmer in 10 days. Almost as God created the Earth, so Brendan Eich created a programming language in 1995 that is compatible with all browsers and … Continue reading

Posted in Javascript (en) | Leave a comment

Python OOP – Object Oriented Programming

We continue to practice programming. After the eighth chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned the principles of OOP and program objects / classes, … Continue reading

Posted in Python (en) | Leave a comment

How to rename a file extension in Python

Task: there is a file with the .raw extension in the folder and I need to rename this file to the same one, but with a different .txt extension – how can I do this? Solution: You need to import … Continue reading

Posted in Python (en) | Leave a comment

Python: Problems and Solutions (Chapter 7 Files and Exceptions Quiz Game)

We continue to practice programming. After the seventh chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned how to work with files, it’s time to move … Continue reading

Posted in Python (en) | Leave a comment

Python Error: inconsistent use of tabs and spaces in indentation

When running the code, a syntax error occurs – inconsistent use of tabs and spaces in indentation. What does this mean and how to solve this problem? The fact is that python enforces uniformity in the use of spaces, which … Continue reading

Posted in Python (en) | Leave a comment

Python: Problems and Solutions (Chapter 6. Functions. Tic-Tac-Toe Game).

We continue to practice programming. After the sixth chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned how to use functions, it’s time to move on … Continue reading

Posted in Python (en) | Leave a comment

Python: non-standard functions. Game “Tic-tac-toe”.

We continue to learn the Python programming language Python. Let’s move on to chapter 6 “Functions. Tic-Tac-Toe Game” from the book: Michael Dawson “Python Programming”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition) to create our own … Continue reading

Posted in Python (en) | Leave a comment

Python: Problems and Solutions (Chapter 5 Lists and Dictionaries Hangman Game).

We continue to practice programming. After the fifth chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned how to make dictionaries and use lists, it’s time … Continue reading

Posted in Python (en) | Leave a comment

Python: Lists and Dictionaries

We continue to learn the Python programming language Python. We turn to the study of chapter 5 of the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where we will master … Continue reading

Posted in Python (en) | Leave a comment

Python: Problems and Solutions (Chapter 4. For Loops, Strings, and Tuples. The Anagram Game).

We continue to practice programming. After the fourth chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned how to use the for statement and create tuples, … Continue reading

Posted in Python (en) | Leave a comment

Python: for loops, constants, slices, tuples, sequences len, range, in, choice

We continue to learn the programming language. Let’s move on to chapter 4 of the book: Michael Dawson “Python Programming”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where we will study loops with the for () … Continue reading

Posted in Python (en) | Leave a comment

Python: Problems and Solutions (Chapter 3. Branching, while Loops, and Pseudocode. Guess the Number Game).

We continue to learn programming. After the third chapter in the book: Michael Dawson “We Program in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I studied the features of working with text in the … Continue reading

Posted in Python (en) | Leave a comment

[C language ] Arithmetic progressions and MMORPGs

I am an avid MMORPG player and for me learning to program becomes much more fun and interesting if the programs I write have some connection to the games. This is especially important when it comes to some abstract mathematical … Continue reading

Posted in C language (en) | Leave a comment

[C language] Operation precedence

It seems to me that I formatted the priorities of K&R operations more successfully: → ( )  [ ]  ->  . ← !  ~  ++   – –   +  –  *  &  (type)  sizeof → *  /  % → … Continue reading

Posted in C language (en) | Leave a comment