+ 1
Help: Strings in Python
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
19 Respostas
0
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
+ 3
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
+ 3
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
+ 2
I see, but many of you are trying to engage in conversations with the Russians
+ 1
Haven't you looped through yet? 🤔
+ 1
https://code.sololearn.com/cMzavkg4FhiC/?ref=app
may be this way
+ 1
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
0
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)
0
your option is also viable, you have solved the task. your code is working, congratulations!
0
Bro what is variables can you explain it better shortly
0
👍 bro i really understand it by you thank you
0
Good luck and happy coding!
0
Sorry bro i am from india
0
You need to have the code with no spaces
0
use for with range and inside either use string format or convert the int into text then concatenation and finally a new line.
0
Ярослав Вернигора(Yaroslav Vernigora) i don't able to message anyone in sololearn app personally why
0
RAMASWAMY KAMMARI
try removing the space before the dot ☺️
0
Give the branch link
Yaroslav Vernigora