#๐ Youtube listed as not a word
33 messages ยท Page 1 of 1 (latest)
@hallow mortar
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
can you show your whole script ?
This is my first python program
print("Hello World!")
print("It's really good!")
Variables = A container for a value (string, integer, float, boolean)
A variable behaves as if it was the value it contains
Strings
first_name = "Bro"
food = "pizza"
email = "[email protected]"
print(f"Hello {first_name}")
print(f"You like {food}")
#Integers (Don't use quotes around integers, because then technically, they would be a string)
age = 25
quantity = 3
num_of_students = 30
#if it were to be 3.5, it would be a float not an integer
print(f"You are {age} years old")
print(f"You are buying {quantity} items")
print(f"Your class has {num_of_students} students")
#press tab for it to type the predicted ghost text
Float (A number that contains a decimal portion)
price = 10.99
gpa = 3.2
distance = 5.5
print(f"The price is ${price}")
print(f"Your gpa is: {gpa}")
print(f"You ran {distance}km")
Boolean (Either true or false. They are generally used internally in a program such as in if statements)
is_student = True
for_sale = True
is_online = True
print(f"Are you a student?: {is_student}")
if is_student:
print("You are a student")
else:
print("You are Not a student")
if for_sale:
print("That item is for sale")
else:
print("That item is Not available")
if is_online:
print("You are online")
else:
print ("You are offline")
Youtube Assignment: make a: (string, integer, float, boolean):
Hey @hallow mortar!
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
i posted it above
Variables = A container for a value (string, integer, float, boolean)
A variable behaves as if it was the value it contains
Strings
You forgot to mark it as comment!
A variable behaves as if it was the value it contains
Strings```
?
i did?
doesn't# mean comment?
Oh right.
it was bolded.
It's probably grammer check, ignore it.
your script should be working fine.
I just wanna know it for future reference
So there are grammer check extensions, and its just marking the word "Youtube" for wrong grammer.
It will not affect your script.
ok
make the T capital too, and it will go away. write YouTube.
oh ok tysm
oof tysm
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.