Python (Basic) Certification | Hackerrank Certifications

preview_player
Показать описание
Thanks if u r watching us ...
#Dev19 #C #Python #Dev19 #HackerankSolutions #C #C++ #Java #Python
Please Subscribe Us ....
Рекомендации по теме
Комментарии
Автор

s = "Abc is Xyz"
s1 = s.split(" ")
s1.reverse()
final = ''''
for i ins1:
final = final + i + " "
print(final)

official-nishant
Автор

Easy and simple

s = "Abc is Xyz"
s1 = s.split(" ")
s1.reverse()
final = ""
for i in s1:
final = final + i + " "
print(final)

rahulsarma
Автор

1. Python: Reverse Words and Swap Cases

def find_missing_letter(chars):
missingChar = ''
for i in range(0, len(chars)-1):
if(ord(chars[i+1]) - ord(chars[i]) > 1):
missingChar = chr(ord(chars[i])+1)

return missingChar

2. Python: Shape Classes with Area Method

import os
from math import pi
class Rectangle:
def __init__(self, l, w):
self.l = l
self.w = w

def area(self):
return (self.l*self.w)


class Circle:
def __init__(self, r):
self.r = r

def area(self):
return (pi*self.r*self.r)



if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
q = int(input())
queries = []
for _ in range(q):
args = input().split(' ')
shape_name, params = args[0], map(int, args[1:])
if shape_name == "rectangle":
a, b = params[0], params[1]
shape = Rectangle(a, b)
elif shape_name == "circle":
r = params[0]
shape = Circle(r)
else:
raise ValueError("invalid shape type")
fptr.write("%.2f\n" % shape.area())
fptr.close()

jigneshrevankar
Автор

def reverse_string(string):
words = string.split(" ")
in_sequence = " ".join(words[::-1])
result = ""
for letter in in_sequence:
if letter == letter.lower():
result += letter.upper()
elif letter == letter.upper():
result += letter.lower()
return result

rutikindulkar
Автор

s= input("enter string")
swap = s.swapcase()
swap1 = swap[::-1]
print(swap1)

satyamsingh
Автор

s = input("enter a string :")
x= s[-1::-1]
print[x.swapcase()]

statusadda
Автор

Are hacker rank certification tests proctored ?

manavmehta
Автор

if we fail first time, after how many exact week we can give the test again??

yuvrajbedi
Автор

Is python intermediate certification there on hackerrank?

siddhantnigam
Автор

Remove the entire code and past this

s = list(map(str, input().split()))
for i in s[::-1]:
print(i.swapcase(), end=" ")

syedaqib
Автор

I can see the test is running on Python 2 version. Does it also work in Python 3.12?

LuisGardie
Автор

Got my certificate . Thanks for the code

kiranmayeep
Автор

can i get the solution of multiset implimentation question ?

AyushGupta-kpxf
Автор

can you give me multiset implementation code

priyanshuvishwakarma
Автор

If i failed at first time. Could not able to finish it on time. Will i be able to take the test again???

aravindram
Автор

It's coming raw_input is not defined

ananthvasishta.s
Автор

does the questions remain same for all or there is possiblility of diffrent questons ?

pythonenthusiast
Автор

Average function in python code piz help me

bharathibollu
Автор

Is reattempt is possible?
If test is not cleared.

nikhilsrikhakollu
Автор

bhai sahat sab sahi hai bus pronounciation sahi nhi lga Awesome ko padte hai ossum

letthemlaugh