You are viewing a single comment's thread from:

RE: SEC-S20W4 Decision Making in Programming: If-Then-Else

the task should be done as a novice, not to go beyond the boundaries of known commands.

last tag #sec20w4sergeyk is not visible, it should be placed in the first four.

Task Comment Grade
1 . From 1 to N. Find a universal optimal way to solve this problem. very nice python solution. It's good that you mentioned the greedy algorithm. But in this lesson we have not yet taught cycles)) 1+/1
2. What is the purpose of Boolean variables? Why are they called that? very very short, but true 1/1
3. What is the purpose of a conditional operator? What types are there? short form if..th and full form if..then..else . there was no switch or ternary operator in the lesson. 0.8/1
4. Write a program to check whether you are subscribed to 100 users. OK, but again - the exercises should be performed using the methods that were in the lecture. The def subroutines have not yet been finished. Additionally, you can tell more, but after the basic task. 1/1
5. Write a program to check whether you have more followers or published posts on steemit.com. good 1/1
6. Write a program to check whether you have more posts, followers, or Steem Power on steemit.com. Eh, no. The essence of the task is the implementation of the max function that you used. 0.3/1
7. Given two numbers, write a program that determines which is greater: their product or their sum. OK, --but the def subroutines again---- 1/1
8. Given two house numbers, determine whether they are on the same side of the street.** (I hope the even numbers are on one side of the street and the odd ones are on the other.) Bingo, row number 5 is what I wanted. It's a pity, but I wanted to ask it again in the next lesson, but I will ask it anyway - maybe not everyone will read it - but they will know. 1+/1
9. Given a number, determine whether it is true that it is more than four digits long, divisible by 7, and not divisible by 3. very simply checked whether it is four-digit, using logarithms and translating the number into text 1/1
10. Which digit of a two-digit number is larger: the first or the second? good, especially liked line #2 with the boolean variable 1/1
Total: *** 9.1/10
Sort:  

IMG_20240930_084439.png

Congratulations!!🎉🎉 Your comment has been upvoted by content seekers using steemcurator05. Continue making creative and quality content on the blog. By @eliany

 2 days ago 

hank you for your feedback! I have updated the place "#sec20w4sergeyk" in the first four hashtag. Regarding 'not going beyond the boundaries of known commands,' I always strive to explore new things, learn, and write clean code. You are right that I should focus only on the lessons and avoid unnecessary details. I will ensure to stay strictly on the lessons in the future.

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.029
BTC 62555.95
ETH 2435.55
USDT 1.00
SBD 2.64