Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5308a68

Browse files
Add files via upload
1 parent 009b2cc commit 5308a68

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

‎Training/Format.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'''
2+
3+
Format Usage and implementation
4+
5+
'''
6+
7+
n=int(input())
8+
m=n/2
9+
print(format(n,".2f"))
10+
print("{0} {1}".format(m,n))
11+
print("{1}".format(m,n))
12+
13+
print("{2}".format(m,n,15))
14+
print("{0} {2} {1}".format(m,n,15,8.5))

‎Training/HollowSqString.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
s=input()
2+
n=len(s)
3+
for i in range(n):
4+
for j in range(n):
5+
if( i==0):
6+
print(s[j],end=" ")
7+
elif(j==0):
8+
print(s[i],end=" ")
9+
elif(j==n-1):
10+
print(s[n-i-1],end=" ")
11+
elif(i==n-1):
12+
print(s[n-j-1],end=" ")
13+
else:
14+
print(" ",end=" ")
15+
print()
16+
17+
18+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /