Thankyou 40K Subscribers π₯π
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯23π€£14π4π2π1
TIGRAY TECH π₯π»
Lesson 4: Taking User Input βοΈ Now, letβs make our program interactive by using the input() function! Example: # Taking user input name = input("What is your name? ") age = input("How old are you? ") print("Hello", name + "! You are", age, "years old.")β¦
Lesson 5: Making Decisions with
Now that we know how to take user input, let's make our programs smarter by using
---
Example:
---
Explanation:
1.
2.
3. Comparison operators (
4. Indentation: Ensures the correct code executes within each block.
---
Task:
Write a program that asks the user for their favorite number. If the number is greater than 10, print:
"That's a big number!"
Otherwise, print:
"That's a small number!"
---
Example Output:
Next Up:
Weβll learn about loops to repeat actions in your programs! π
if-else πNow that we know how to take user input, let's make our programs smarter by using
if-else conditions! These allow our program to make decisions based on user input or other factors.---
Example:
age = int(input("How old are you? "))
if age >= 18:
print("You are an adult!")
else:
print("You are a minor!")---
Explanation:
1.
if statement: Checks a condition. If it evaluates to True, the indented block runs.2.
else statement: Runs if the if condition is False.3. Comparison operators (
>=, <, ==): Used to compare values.4. Indentation: Ensures the correct code executes within each block.
---
Task:
Write a program that asks the user for their favorite number. If the number is greater than 10, print:
"That's a big number!"
Otherwise, print:
"That's a small number!"
---
Example Output:
Enter your favorite number: 12
That's a big number!Next Up:
Weβll learn about loops to repeat actions in your programs! π
β€6π3π₯2π1
TIGRAY TECH π₯π»
Lesson 5: Making Decisions with if-else π Now that we know how to take user input, let's make our programs smarter by using if-else conditions! These allow our program to make decisions based on user input or other factors. --- Example: age = int(input("Howβ¦
What Do You Need Next??
1π3π€2β€1
Forwarded from Crypto Lessons
Media is too big
VIEW IN TELEGRAM
π
What is an NFT? (Non-Fungible Tokens Explained)
0:00 - 0:15 Intro
0:16 - 1:00 What is an NFT?
1:01 - 2:24 The Details of all Non Fungible Tokens
2:25 - 5:13 Why buy an NFT?
5:14 - 6:12 Buying Jack Dorsey's First Tweet
6:13 - 6:48 How popular are they?
6:49 - 7:52 Top 11 Most Expensive NFTs
7:53 - 8:44 Can someone copy your NFT?
8:45 - 10:13 How do you buy an NFT?
10:14 - 11:05 Where do you store your NFTs?
What is an NFT? A Non-Fungible Token, also known as a NFT, is a type of digital token or asset. A common analogy is to think of these as digital trading cards or digital paintings. When you buy an NFT, you are buying the rights to that specific asset. In this video you'll learn exactly what a non-fungible token is, and why they are valuable.
0:00 - 0:15 Intro
0:16 - 1:00 What is an NFT?
1:01 - 2:24 The Details of all Non Fungible Tokens
2:25 - 5:13 Why buy an NFT?
5:14 - 6:12 Buying Jack Dorsey's First Tweet
6:13 - 6:48 How popular are they?
6:49 - 7:52 Top 11 Most Expensive NFTs
7:53 - 8:44 Can someone copy your NFT?
8:45 - 10:13 How do you buy an NFT?
10:14 - 11:05 Where do you store your NFTs?
π₯5π2π2π1
This media is not supported in your browser
VIEW IN TELEGRAM
ChatGPT In 2030 π
π€£30π5π₯2π1
TIGRAY TECH π₯π»
Lesson 5: Making Decisions with if-else π Now that we know how to take user input, let's make our programs smarter by using if-else conditions! These allow our program to make decisions based on user input or other factors. --- Example: age = int(input("Howβ¦
Now this
This is your DCQT test ( Department Of Comment Questions Test )π€£ π
x = True
y = False
z = x or y and not x
print(z)
This is your DCQT test ( Department Of Comment Questions Test )
Please open Telegram to view this post
VIEW IN TELEGRAM
π6π3π₯1
Forwarded from Telegram Contests
Telegram and TON Core announce a new coding contest!
Prize Fund: $100,000 to $200,000
Deadline: 23:59, February 4th (Dubai time)
Tasks: Blockchain Validation (C++ code optimization) and/or Trustless Bridge (participants can choose one or both).
Prize Fund Distribution
The total prize fund, up to $200,000, will be allocated based on each participantβs overall contribution. Winners will also have the opportunity to compete in Stage 2, which will feature a separate, similar prize fund.
Additional Opportunities
Winners have the chance to join the Telegram or TON Core teams, or receive support to launch a real TVM sidechain for TON. The best optimization solutions may also be implemented to enhance the TON main network.
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯6π5π4π2
TIGRAY TECH π₯π»
#TikTok is set to be banned in the U.S. starting January 19, 2025, unless its parent company, ByteDance, divests ownership of the app!
Canβt believe weβre getting TikTok ban before gta 6 πΏ
Please open Telegram to view this post
VIEW IN TELEGRAM
π11π5π3π2π1
This media is not supported in your browser
VIEW IN TELEGRAM
W teacher π₯π
π₯18π6π4π3
W-Community
W-Coinβs listing is set for January 25
W-Coin is coming guys Jan 25 π
Please open Telegram to view this post
VIEW IN TELEGRAM
π17π₯7π2
This media is not supported in your browser
VIEW IN TELEGRAM
Hamza Bendelladji β
an Algerian hacker who extracted $4 billion from 217 different banks and donated it all to poor African countries and Palestine. He was arrested in Bangkok in 2013and in 2016, USA court sentenced him 15 years in prison. And every time people saw him him he was smiling with no regrets on his face.
His code name was BX1 and also nicknamed as smiling hacker. It took more than 5 years to FBI and Interpol to find him.
Bro didn't even opposed arrest, just smiled and said good bye to his family π«
π Must join our Channel @TIGRAYTECHC
Give Reactions fast and share post else no more like this π§
an Algerian hacker who extracted $4 billion from 217 different banks and donated it all to poor African countries and Palestine. He was arrested in Bangkok in 2013and in 2016, USA court sentenced him 15 years in prison. And every time people saw him him he was smiling with no regrets on his face.
His code name was BX1 and also nicknamed as smiling hacker. It took more than 5 years to FBI and Interpol to find him.
Bro didn't even opposed arrest, just smiled and said good bye to his family π«
π Must join our Channel @TIGRAYTECHC
Give Reactions fast and share post else no more like this π§
π₯15π6π4β€3π1
TIGRAY TECH π₯π»
W-Coin is coming guys Jan 25 π
Postponed to feb 25th π«€
They thought the day wonβt come
They thought the day wonβt come
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£23π5
Forwarded from Quietly Community (Kalab SEED π±)
$CRYPTO Airdrop Waitlist Form
π Link - https://forms.gle/H164dZon6PTcWAcHA
βοΈ Follow the telegram channel & X account
βοΈ Retweet the post
βοΈ Submit ur Solana address
βοΈ Done
Don't panic the form is mine just for fun π
Might be something π
Might be something π
Please open Telegram to view this post
VIEW IN TELEGRAM
π8π€¨8π4π₯2π₯°1
W-Community
Check the w-coin announcement channel π
r u Eligible to mint NFTvoucher?
r u Eligible to mint NFTvoucher?
π13π6π₯4π«‘1
Quietly Community
$CRYPTO Airdrop Waitlist Form π Link - https://forms.gle/H164dZon6PTcWAcHA βοΈ Follow the telegram channel & X account βοΈ Retweet the post βοΈ Submit ur Solana address βοΈ Done Don't panic the form is mine just for fun π Might be something π
If u participate in a waitlist before π
https://t.me/quietlyhouse_bot?start=Bot38055520
Fund Raised 5.1M
Cost 0$
Trumpβ
Melaniaβ
QuietlyβοΈ
Probably somethingπΈ
#jff
https://t.me/quietlyhouse_bot?start=Bot38055520
Fund Raised 5.1M
Cost 0$
Trump
Melania
Quietly
Probably something
#jff
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£21π8π₯3π1
I will share if u want
Please open Telegram to view this post
VIEW IN TELEGRAM
1π«‘30π17π₯5β€3π2
import telebot
from telebot.types import ReplyKeyboardMarkup, KeyboardButton
# Replace with your bot token and channel username
BOT_TOKEN = "YOUR_BOT_TOKEN"
CHANNEL_USERNAME = "@YourChannel"
bot = telebot.TeleBot(BOT_TOKEN)
@bot.message_handler(commands=['start'])
def start(message):
user_id = message.from_user.id
if is_user_member(user_id):
send_main_menu(message.chat.id)
else:
send_join_prompt(message.chat.id)
def is_user_member(user_id):
try:
member = bot.get_chat_member(CHANNEL_USERNAME, user_id)
return member.status in ['member', 'administrator', 'creator']
except:
return False
def send_join_prompt(chat_id):
markup = ReplyKeyboardMarkup(resize_keyboard=True)
markup.add(KeyboardButton("β Joined"))
bot.send_message(chat_id, f"Please join our channel {CHANNEL_USERNAME} to use this bot!", reply_markup=markup)
@bot.message_handler(func=lambda message: message.text == "β Joined")
def joined(message):
user_id = message.from_user.id
if is_user_member(user_id):
bot.send_message(message.chat.id, "Thank you for joining! Here's the main menu:")
send_main_menu(message.chat.id)
else:
bot.send_message(message.chat.id, f"You haven't joined {CHANNEL_USERNAME} yet! Please join and try again.")
def send_main_menu(chat_id):
markup = ReplyKeyboardMarkup(resize_keyboard=True)
markup.add(KeyboardButton("π Claim Gift"), KeyboardButton("π° Balance"))
markup.add(KeyboardButton("π€ Withdraw"), KeyboardButton("π Support"))
bot.send_message(chat_id, "Welcome to the main menu! Choose an option:", reply_markup=markup)
bot.polling()
#python #language
Give Reactions fast and share post else no more bot codes
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯15π11π«‘3β€1
Join link
https://guild.xyz/magic-newton
Script
https://github.com/zainarain279/MagicNewton.git
The script isn't mine but it's working perfectly
https://guild.xyz/magic-newton
Script
https://github.com/zainarain279/MagicNewton.git
The script isn't mine but it's working perfectly
π₯8π3β€1π1π1