Skip to content

Instantly share code, notes, and snippets.

View Vishakha263's full-sized avatar

Vishakha Nerkar Vishakha263

  • Mumbai
View GitHub Profile
verse="""Up above the world so high
Like a diamond in the sky"""
print(verse.replace('world','hill').replace('diamond','butterfly'))
poem="""twinkle, twinkle, little car
How I wonder what you are
Up above the world so high
Like a diamond in the sky
twinkle, twinkle little car
"""
print(poem.replace('twinkle','shimmer',2))
poem="""twinkle, twinkle, little star
How I wonder what you are
Up above the world so high
Like a diamond in the sky
twinkle, twinkle little star
"""
print(poem.replace('star','car'))
HideAndSeek='BCAbC'
G=HideAndSeek.find('G')
if G==-1:
print('NO')
else:
print('YES')
HideAndSeek='BCAbC'
print(HideAndSeek.find('b'))
HideAndSeek='BCA C'
print(HideAndSeek.find('C',2))
HideAndSeek='B AC'
HideAndSeek.find('A')
students={'Eddy','Mira','John','Sia'}
print(students[1])
courses={'python','c','java'}
print(courses)
Unika={1,3,7,2,1,7}