RUVIDEO
Поделитесь видео 🙏

Problem Solving Using Python Programming (Part - 1) смотреть онлайн

In This Video I Have Explained About :
1.Round() Function
2.Comments Function
3.Promblem Solving Using Python

Watch The Video Completely To Know Complete Information

Round :

Rounding Numbers
round(number, digits(optional)) Rounds the float value to the given number of decimal digits.

digits - define the number of decimal digits to be considered for rounding.

when not specified default is 0

Code:
a = round(3.14,1)
print(a)
a = round(3.14)
print(a)

Output :
3.1
3

Floating Point Approximation :

Float values are stored approximately.

Code :
print(0.1 + 0.2)

Output :
0.30000000000000004

Floating Point Errors :

Sometimes, floating point approximation gives unexpected results.

Code:
print((0.1 + 0.2) == 0.3)

Output :
False

To avoid these unexpected results, we can use round()

Code :
a = round((0.1 + 0.2), 1)
print(a)
print(a == 0.3)

Output :
0.3
True

Comments :

Comment starts with a hash #

It can be written in its own line next to a statement of code.

Code :
n = 5
# Finding if Even
even = (n % 2 == 0)
print(even) # prints boolean value

Output :
False

Python Programming Main Code :

n = int(input())
#print(n)

left_spaces_count = n - 1
left_spaces = " " * left_spaces_count
row_output = left_spaces + "*"
print(row_output)

hollow_spaces_count = -1
for row in range(2, n + 1):
left_spaces_count = n - row
left_spaces = " " * left_spaces_count
hollow_spaces_count = hollow_spaces_count + 2
hollow_spaces = " " * hollow_spaces_count
row_output = left_spaces + "*" + hollow_spaces + "*"
print(row_output)

for row_bottom in range(1,n-1):
left_spaces_count = row_bottom
left_spaces = " " * left_spaces_count
hollow_spaces_count = hollow_spaces_count - 2
hollow_spaces = " " * hollow_spaces_count
row_output = left_spaces + "*" + hollow_spaces + "*"
print(row_output)

left_spaces_count = n - 1
left_spaces = " " * left_spaces_count
row_output = left_spaces + "*"
print(row_output)

Input :
6

Output :

*
* *
* *
* *
* *
* *
* *
* *
* *
* *
*

Note : Try Out Your Own Input In The Above Mentioned Code

Previous Video Link : https://youtu.be/0mF7Vubxp0I

My Official Website : https://vishwesh.ccbp.tech/

Feel Free To Comment, I Will Answer All Ur Queries.

#CCBP #NxtWave #Skills #ccbpacademy #CCBPACADEMY #Transformation #career #myexperience #success #coding #skills #Programming #CCBP_ACADEMY #timemanagement #CCBPACADEMY #ccbp_academy

#ccbp #nxtwave #transformation #progress #CCBPacademy #review
#myexperience #success #codin #fontsicon #pytho #programmin #programme #code #javascript
#developer
#coders
#webdevelopment
#php
#html
#software
#computer
#machinelearning
#linux
#technology
#java
#pythonprogramming
#datascience
#programmers
#css
#webdesigner
#codeismylife
#tech
#code
#webdeveloper
#computerscience
#snake
#programmerlife
#hacking
#youtubeislife #subscriber #youtubeguru #youtubecontent #newvideo #subscribers #youtubevideo #youtub #youtuber #youtubevideos

Thank You .

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Problem Solving Using Python Programming (Part - 1)» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.