Logic building in Programming | Q-1 | Problem solving | Basics ๐Ÿ‘‰๐Ÿ‘‰ Advanced ๐Ÿ”ฅ๐Ÿ”ฅ


Logic building in Programming | Q-1 | Problem solving , Basics To Advanced 

 

Question

The parameter weekday is True if it is a weekday, and the parameter vacation is True if we are on vacation. We sleep in if it is not a weekday or we're on vacation. Return True if we sleep in.



SOLUTION

def sleep_in(weekday, vacation):
	if vacation==True or weekday==False:
		return True
	return False


In this video series we will solve some easy/complex problems related to programming
these problems can be solved in any programming language 

IT IS MY SMALL TRY TO IMPROVE ( warmup for brain ) LOGICAL THINKING OF EVERY PROGRAMMER

TRY TO SOLVE IT BY YOUR SELF BEFORE SEEING THE SOLUTION

If you have any questions or suggestions, please share with me 
I will try my best to learn and share with everyone ☺️

Comments