diff --git a/.gitignore b/.gitignore index bee8a64..f3f6814 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ __pycache__ +.idea/ \ No newline at end of file diff --git a/Programs/P01_hello.py b/Programs/P01_hello.py index 5754bc3..3851cc9 100644 --- a/Programs/P01_hello.py +++ b/Programs/P01_hello.py @@ -7,3 +7,29 @@ def justPrint(text): if __name__ == '__main__': justPrint('Hello') + +def main(): + print ("Hello World!") + +if __name__== "__main__": + main() + +print ("Guru99") + +oldstring = 'I like Guru99' +newstring = oldstring.replace('like', 'love') +n1 = newstring.replace ('G','H') +print(newstring) +print (n1) + +string="12345" +print(''.join(reversed(string))) +print(":".join("Python")) + +word="guru99 career guru99" +print(word.split('r')) + +a=(5,6) +b=(6,4) +if (a>b):print("a is bigger") +else: print("b is bigger") \ No newline at end of file