19 AnswersNew Answer
You need to make a program for a leaderboard. The program needs to output the numbers 1 to 9, each on a separate line, followed by a dot: 1. 2. 3. ... Attempt: https://code.sololearn.com/cNmTTJ0v25qP
5/3/2021 12:23:05 PMDevender Singh Rajpurohit
19 AnswersNew Answer
if you understand Russian, I can give you a link to the branch where I explain what computer memory and variables are in more detail
variables are like empty boxes that a programmer creates in his program to put some data there. the label on the outside of the box is the name of the variable, so that the box is not lost and we can always find it by referring to it by name
We need to calculate the area of the circle (S = pi*R²), where S is the area, R is the radius, pi = 3.14 pi = 3.14 # when running our program, an empty box is created, the name "pi" is written on top of the box and the value is immediately put inside - the number 3.14 R = int(input()) # creates another empty box labeled R. There's nothing in it yet... we are waiting for the user to put something in the box... what value will it put there S = pi * R**2 # create the third box with the inscription above "S", where lies within the manual: "1. To get out of the box "pi" value 3.14 and 2. multiply it with the value that will be in a box "R" squared print(S) # print the result on the screen
I see, but many of you are trying to engage in conversations with the Russians
Haven't you looped through yet? 🤔
https://code.sololearn.com/cMzavkg4FhiC/?ref=app may be this way
Devender singh since you joined only recently, eight days ago, the ability to send private messages is limited for you. just use all the features more often and soon the restriction will be lifted
you use a multi-line comment (three consecutive quotation marks on both sides of the text) """ this is comment """, instead of the single quotation marks " " that denote the text (string)
your option is also viable, you have solved the task. your code is working, congratulations!
Bro what is variables can you explain it better shortly
👍 bro i really understand it by you thank you
Good luck and happy coding!
Sorry bro i am from india
You need to have the code with no spaces
use for with range and inside either use string format or convert the int into text then concatenation and finally a new line.
Ярослав Вернигора(Yaroslav Vernigora) i don't able to message anyone in sololearn app personally why
RAMASWAMY KAMMARI try removing the space before the dot ☺️
Give the branch link Yaroslav Vernigora
Sololearn Inc.535 Mission Street, Suite 1591
Send us a message