15_must_know_coding_patterns.pdf
3.1 MB
Subscribe to👉🏻 "CODER BABA" YouTube channel ✨ for coding, programming, software related content 💯💯
🚀Top 10 Github Repositories For Web Developer🚀
1. Web Developer-Roadmap : https://github.com/kamranahmedse/developer-roadmap
2. 30-Seconds-Of-Code : https://github.com/30-seconds/30-seconds-of-code
3. Awesome-Cheatsheets : https://github.com/LeCoupa/awesome-cheatsheets
4. CSS-Protips : https://github.com/AllThingsSmitty/css-protips
5. 33-JS-Concepts : https://github.com/leonardomso/33-js-concepts
6. You-Dont-Know-JS : https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed
7. Front-End-Checklist : https://github.com/thedaviddias/Front-End-Checklist
8. Javascript-Questions : https://github.com/lydiahallie/javascript-questions
9. Clean-Code-Javascript : https://github.com/ryanmcdermott/clean-code-javascript
10. free-programming-books : https://github.com/EbookFoundation/free-programming-books
🙏 Subscribe to👉🏻 "CODER BABA" YouTube channel ✨ for coding, programming, software related content 💯💯🙏
1. Web Developer-Roadmap : https://github.com/kamranahmedse/developer-roadmap
2. 30-Seconds-Of-Code : https://github.com/30-seconds/30-seconds-of-code
3. Awesome-Cheatsheets : https://github.com/LeCoupa/awesome-cheatsheets
4. CSS-Protips : https://github.com/AllThingsSmitty/css-protips
5. 33-JS-Concepts : https://github.com/leonardomso/33-js-concepts
6. You-Dont-Know-JS : https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed
7. Front-End-Checklist : https://github.com/thedaviddias/Front-End-Checklist
8. Javascript-Questions : https://github.com/lydiahallie/javascript-questions
9. Clean-Code-Javascript : https://github.com/ryanmcdermott/clean-code-javascript
10. free-programming-books : https://github.com/EbookFoundation/free-programming-books
🙏 Subscribe to👉🏻 "CODER BABA" YouTube channel ✨ for coding, programming, software related content 💯💯🙏
👉 PYTHON CODE FOR NUMBER GUESSING GAME 👈
import random
import math
lower = 0
upper = 100
x = random.randint(lower, upper)
limit = round(math.log(upper - lower + 1, 2))
print("\n\tYou've only ", limit, " chances to guess the integer!\n")
count = 0
while count <= limit:
count += 1
guess = int(input("Guess a number:- "))
if count == limit:
print("\n\tThe number is %d" % x)
print("\tBetter Luck Next time!")
break
if x == guess:
print("Congratulations you did it in ",count, " try")
break
elif x > guess:
print("You guessed too small!")
elif x < guess:
print("You Guessed too high!")
😎 Hope you guys liked it @Coder_babaSubscribe to👉🏻 "CODER BABA" YouTube channel ✨ for coding, programming, software related content 💯💯
👇👇
Data Science Notes
👇👇
Data Science Notes
1655183344172.pdf
333.8 KB
Algorithmic concepts for anyone who is taking Data Structure and Algorithms, or interested in algorithmic trading
git-cheat-sheet-education.pdf
97.8 KB
Git commands cheatsheets for anyone working on personal projects on GitHub!
Mutable and Immutable
Mutable object : An object whose internal state can be changed is mutable.
Immutable object: Immutable doesn't allow any change in the object once it has been created.
Let's check mutability of List and tuple
L1=["c","o","d","e","n","g"]
L1[3]="i"
print(L1)
Output: ["c","o","d","i","n","g"]
👉 List is mutable
T1=("c","o","d","e","n","g")
T1(3)="i"
print(T1)
⭕️ TypeError: 'tuple' object does not support item assignment
👉 Tuple is immutable
Did you get what is really mean by the word "mutable" and "immutable"?
😎 Hope you guys liked it
Subscribe to👉🏻 "CODER BABA" YouTube channel ✨ for coding, programming, software related content 💯💯
Mutable object : An object whose internal state can be changed is mutable.
Immutable object: Immutable doesn't allow any change in the object once it has been created.
Let's check mutability of List and tuple
L1=["c","o","d","e","n","g"]
L1[3]="i"
print(L1)
Output: ["c","o","d","i","n","g"]
👉 List is mutable
T1=("c","o","d","e","n","g")
T1(3)="i"
print(T1)
⭕️ TypeError: 'tuple' object does not support item assignment
👉 Tuple is immutable
Did you get what is really mean by the word "mutable" and "immutable"?
😎 Hope you guys liked it
Subscribe to👉🏻 "CODER BABA" YouTube channel ✨ for coding, programming, software related content 💯💯