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 bccd4f5

Browse files
Merge pull request #13 from SirGaLaHaD69/ritik_feature
added user input to Palindrome
2 parents 38ab94c + d17f322 commit bccd4f5

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

‎Palindrome.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def isPalindrome(strp):
55

66

77
# Driver code
8-
strp = "malayalam"
8+
strp = input("Enter String ")
99
ans = isPalindrome(strp)
1010

1111
if ans:

‎gcd_euclid.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
def hcfnaive(a,b):
2+
if(b==0):
3+
return a
4+
else:
5+
return hcfnaive(b,a%b)
6+
7+
a = 60
8+
b= 48
9+
10+
# prints 12
11+
print ("The gcd of 60 and 48 is : ",end="")
12+
print (hcfnaive(60,48))

‎variables.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
var = 'Hello! World.'
1+
var = 'Hello World!!'
22
print(var)
33

4-
var1 = "Hello! World.'
4+
var1 = "Open Source"
55
print(var1)
66

77
var2 = 'this is python'

0 commit comments

Comments
(0)

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