python pattern 8 string pattern

preview_player
Показать описание
this is the video 8 and probably the last video of python pattern series in which i will show you how you can create a step wise pattern or triangle pattern from user provided string using python.
these videos will boost your programming logic as well as skills in python on :
1) how for loop works in python
2) how range function works in python

some terms related to video :

python pyramid pattern
python pyramid program
python pyramid tutorial
python pyramid tutorial for beginners
python pyramid pattern program
python pyramid example
python pyramid program example
python pattern program
python programs square
python pattern printing
python pattern programs - printing stars '*' in pyramid shape
python beginners project
python beginners program
python project for beginner
python beginners project tutorial
python beginners project with source code
python beginners programming exercise
python beginners project ideas
python programming beginners tutorial
beginners python projects
python programming beginners project
python project for beginners
python project tutorial for beginners
python project topic for beginners

tags : #python_pattern #python_basics #i_know_python
Рекомендации по теме
Комментарии
Автор

i don't know why you use -1 in first for loop,
-1 is gives u last letter of the string
you used that so it doesn't printed last letter
see u type last five "o" but it print four 'o' only " h e l l l l o o o o o" it print " h e l l l l o o o o "

monsingrajput
Автор

You can build the program in sublime by using "crtl+b"

SAIKUMAR-ljpn
Автор

In the code there is a problem. Code not showing last index of string.
I just added a space after string, Now code running perfectly fine.
##Try this code. It's working.
name = input("Enter you name = ")
string = name + " "
for i in range(0, len(string)-1):
for j in range(0, i+1):
print(string[j], end = " ")
print(" ")

aadeshlokhande