Tutorials  Articles  Notifications  Login  Signup


BookMyShow
Product Design Intern BookMyShow •1 month, 2 weeks ago
Accenture
New Associate-Business Process Design Accenture •1 month, 2 weeks ago
Amazon
Software Development Engineer - Campus Hire Amazon •1 month, 3 weeks ago

Sign in to Publish articles, apply into jobs, participate in Hackathons.

Sign in

RK

Rajan Kumar

Founder at HackersFriend Aug. 12, 2020, 1:17 p.m. 1053 views

How to separate Django application config files from code using python decouple

We have to put a lot server specific details in settings.py file of any django application, like DB username and …


RK

Rajan Kumar

Founder at HackersFriend Aug. 11, 2020, 10:10 p.m. 1256 views

How to return JSON Encoded response from Django View

From django 1.7 + we have built-in JsonResponse in Django. It sets Content-Type in http header to application/json, and converts …


DG

Dhirendra Gupta

Student at BIT Mesra Aug. 5, 2020, 10:17 a.m. 471 views

Python read file

To read contents of any file using python we need to follow following steps:

  1. Open the file using open() function …

DG

Dhirendra Gupta

Student at BIT Mesra Aug. 4, 2020, 6:37 p.m. 527 views

Python Delete file or directory

To delete a file or folder using python, we must import os. Os library provides remove() function which we can …


DG

Dhirendra Gupta

Student at BIT Mesra Aug. 4, 2020, 6:19 p.m. 532 views

Type casting in Python

There might be times when we want a variable to be certain type. It usually happens when we need to …


DG

Dhirendra Gupta

Student at BIT Mesra July 31, 2020, 12:13 p.m. 645 views

Python end parameter in print()

print() function in python prints a new line in the end by default. Sometimes we might don't want this behaviour …


HS

Harsh Shukla

Intern at Microsoft July 30, 2020, 10:31 a.m. 475 views

Python Get length of a string

To get length of a string you can use len() function of python. len() function can be used with several …


HS

Harsh Shukla

Intern at Microsoft July 30, 2020, 10:21 a.m. 538 views

Python get number of items in a list

To get number of items in a list you can use len() function of python. len() function can be …


DG

Dhirendra Gupta

Student at BIT Mesra July 27, 2020, 3:11 p.m. 633 views

Check if strings are rotations of each other or not

Given a string s1 and another string s2 your task is to check if s2 is rotation of s1 or …


AS

Anoop Singh

SDE 1 at Amazon July 27, 2020, 12:11 p.m. 483 views

C program to print "HackersFriend" without using a semicolon

We can print anything is C without using semicolon, there are many ways to do it. We'll show implementations of …


HackerFriend Logo

Join the community of 1 Lakh+ Developers

Create a free account and get access to tutorials, jobs, hackathons, developer events and neatly written articles.


Create a free account

View more
HackerFriend Logo

Join the community of 1 Lakh+ Developers

Create a free account and get access to tutorials, jobs, hackathons, developer events and neatly written articles.


Create a free account

HackersFriend Updates




View more