ChatCrawlerпоиск по публичному Telegram Открыть приложение
3

30 Days Of Python

5 536 участников
10 июля 2026
Yea okay, that makes so much more sense to my. I was ramming my head against the wall trying to let python do the math without using anything that has not been shown yet. Also in day3 exercise 20. Check if int('9.8') is equal to 10. You can't do that int bc it's not taking '9.8' as a string. Is that correct or did I do smth wrong? I changed it to int(9.8) effectively converting float to int instead of str and it works.
K
Okay I'm out for the last exercise with the table script. Can someone please show me a solution for that one? I'm at my wits end.
K
#1 - 3 user_age = 26 user_height = 1.80 complex_number = 5 + 2j #4 triangle_base = int(input("Base of Triangle:")) triangle_height = int(input("Height of Triangle:")) #5 print("The Area of the triangle is:", triangle_base * triangle_height * 0.5) triangle_side_a = int(input("Triangle side a:")) triangle_side_b = int(input("Triangle side b:")) triangle_side_c = int(input("Triangle side c:")) triangle_perimeter = triangle_side_a + triangle_side_b + triangle_side_c #6 print("Triangle Perimeter is:", triangle_perimeter) rectangle_length = int(input("Rectangle length:")) rectangle_width = int(input("Rectangle Width:")) rectangle_area = rectangle_length * rectangle_width rectangle_perimeter = rectangle_length + rectangle_width * 2 print("Rectangle Perimeter is:", rectangle_perimeter) print("Rectangle Area is:", rectangle_area) #7 circle_radius = int(input("Enter Circle radius:")) circle_area = 3.14 * circle_radius ** 2 circle_circumference = 3.14 * circle_radius * 2 print("Cirlce Area is:", circle_area) print("Circle Circumference is:", circle_circumference) #8 slope1 = 2 xintercept1 = 1 yintercept1 = -2 print("Slope1:", slope1) print("x intercept", xintercept1) print("y intercept", yintercept1) x1, y1, x2, y2 = 2, 2, 6, 10 #9 slope2 = (y2 - y1) / (x2 - x1) euclidean_distance = ((x2 - x1) 2) + ((y2 - y1) 2) * 0.5 print("Slope2:", slope2) print("Euclidean Distance:", euclidean_distance) #10 print("Are slope1 and slope2 the same?:", slope1 == slope2) #11 x = -3 print("Y=", x ** 2 + 6 * x + 9) #12 print(len("python") != len("dragon")) #13 print("on" in "python" and "on" in "dragon") #14 print("jargon" in "I hope this course is not full of jargon") # 5 print("on" not in "python" and "on" not in "dragon") #16 python_length = len("python") python_length_float = float(python_length) python_length_str = str(python_length_float) print("Python Length in int, float, string:", python_length, python_length_float, python_length_str) #17 even_check = int(input(
A
It would work if u just printed the numbers of each row alone U can look for the pattern between the numbers if u want but its the same output
K
So basically just doing print(1, 1, 1, 1, 1 5, 1, 1.... . . . . . . .) ? Or Print(1, 1 ,1 ,1 ,1) Print( Print(... ?
A
The second to give it the same structure as the question
11 июля 2026
P
how did you guys find slope of y=2x-2
R
Currently reading function. What about you?
12 июля 2026
challenge = 'thirty days of pythoonnn' print(challenge.strip('noth')) # 'irty days of py'
You guys know why it gives this outcome
I'm new here, I'm starting to program in Python today.
K
Je consignerai ici mes progrès chaque jour afin que vous puissiez tous en être témoins.
J
PhyoI don't understand
https://www.geeksforgeeks.org/python/python-string-strip/ The strip method removes by default whitespaces at the beginning and end of a string. If you specify a string as you did, it will remove the characters at the beginning and end that belong to that set of characters. In your case, you can see it as if you passed the set (n, o, t, h) to be removed, so if it finds one of those characters at the beginning or end, it will remove them, hence your result is 'irty days of py'
13 июля 2026
Открыть в Telegram Каталог площадок Искать в ChatCrawler

Слепок открытой публичной ленты из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Чего мы не делаем · Убрать страницу из выдачи · Каталог