“pola” Kode Jawaban

pola

num = int(input("Enter the Number: "))
k = 1
for i in range(0, num):
    for j in range(0, i+1):
        print(k, end="")
        k = k+1
    print()

# This code is contributed by Shubhanshu Arya (Prepinsta Placement Cell Student) 
sree_007

pola

rows = int(input("Enter rows:"))
cols = int(input("Enter Cols:"))

for i in range(0, rows):
    for j in range(0, cols):
        if i==0 or j==0 or i == rows-1 or j == cols-1:
            print("*", end="")
        else:
            print(" ", end="")
    print()

# This code is contributed by Shubhanshu Arya (Prepinsta Placement Cell Student) 
sree_007

pola

rows = int(input("Enter the Number of rows: "))
cols = int(input("Enter the Number of cols: "))

for i in range(0, rows):
    for j in range(0, cols):
        if i == 0 or j == 0 or j == cols-1 or i == rows - 1:
            print("3", end="")
        else:
            print(i, end="")
    print()

# This code is contributed by Shubhanshu Arya (Prepinsta Placement Cell Student) 
sree_007

pola


        python
        
            
        
     import re
text, pattern = input(), input()
m= list(re.finditer("(?=(%s))"%pattern,text))
if not m:
    print((-1,-1))
for i in m:
    print((i.start(1),i.end(1)-1))
sree_007

pola

num = int(input("Enter the Number: "))

for i in range(1, num+1):
    for j in range(0, num):
        print(i, end="")
    print()

# This code is contributed by Shubhanshu Arya (Prepinsta Placement Cell Student) 
sree_007

Jawaban yang mirip dengan “pola”

Pertanyaan yang mirip dengan “pola”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya