Skip to content

Latest commit

 

History

History
21 lines (20 loc) · 616 Bytes

File metadata and controls

21 lines (20 loc) · 616 Bytes

Tips And Tricks

About

This Is a Compilation of Various Tips And Tricks and various Smaller Codes which people might not know how to do but they are searching around Internet To Find. Here is a Compilation Of All of them. Contribute to This Section By Clicking Here

1. Check If a Number Is Integer Or Not

Code:

def is_integer(n):
  if isinstance(n, int)
     return True
  if isinstance(n, float):
     return n.is_integer()
  return False

2. Appending Text To Same Line

Code:

print("This Is A Random Text" end = "")
print("Hello"