Комментарии:
11 type
ОтветитьIm planning on learning python to get a step up in my career. It’s not a requirement for my role but it’s been in my vicinity since day 1. My daily commute is roughly 2 hours/day on local transit, why not learn something instead of death scrolling or sleeping?
ОтветитьI want it to master on web development.
ОтветитьI'm here because synchronicity took me here
Ответитьشما ایرانی هستین؟!
Ответитьlearning bc i can’t understand my teacher in school…
Ответить10. Bạn sẽ tìm thấy niềm vui khi giúp đỡ người khác bằng tất cả tấm lòng. Cuộc sống, ngay cả khi có một ngàn lý do để làm cho bạn khóc, bạn vẫn phải tìm một triệu lý do để giữ nụ cười.3. Đừng bao giờ thay đổi mình vì người khác. Nếu họ không thể tiếp nhận một con người nhiều điểm xấu là bạn, thì cũng không xứng để có được một con người với nhiều điểm @Programming with Mosh
ОтветитьThank you mosh i came to this!!!! TWICE!!!!
ОтветитьName="John Smith"
Age=20
Status="New Patient"
Thank you Mosh sir, now I can pass my Computer Practical
ОтветитьFor hacking
Ответитьage = 20
name = (''John Smith'')
Thanks mosh, representing kenya
Ответитьthank you so much it helped me alot ,i thought python was hard but i got a better understanding now :)))))))))))
Ответитьpatient_name = ('John Smith')
Age = 20
New_patient = True
print(patient_name,Age,New_patient)
good, man!
ОтветитьMosh are you iranian because hamedani is a surname in iran... by the way if you are nice job buddy you learned me evrything.thanks
ОтветитьThis was my code:
first_name = "Jhon"
last_name = "Smith"
age = 20
newpatient = True
oldpatient = False
Hope this helps some people!
Game development.
ОтветитьWeb development
ОтветитьTime flew by so quick. Unfortunately I will now start forgetting... I have to start practicing.
Question, how clean is installing Python on a PC? I mean is it easy to uninstall without leaving behind random folders and files that I have to hunt down for peace of mind? Are they easily traceable at least?
Looking froward learning python for fun to use in web development and cybersecurity. :)
Ответитьfor lbs <> kg conversion
str1="Weight in lbs"
str2="Weight in kg"
weight = int(input("What is your weight?"))
kg_or_lbs = str(input ("Is is in kg or lbs?"))
if kg_or_lbs == ' kg':
weight_lbs = weight * 2.2
print(str1,weight_lbs)
elif kg_or_lbs == ' lbs':
weight_kg = weight / 2.2
print(str2,weight_kg)
character_name = "John Smith"
character_age = "20"
print("Hello Sir " + character_name + "")
Trying to learn python so I can get into data science and machine learning and leave my security guard job. I’m super new to all of this so it’s a bit of an overload of info. But I’m determined. Thanks for the video
ОтветитьHackers behind every account and they are going to acting like Saints 😂😂😂WTF all of you missing only Glory around your dicks 😂😂😂Do you think you need moreeeee courses?!😂😂😂Master Python types 😂😂😂
Ответитьthank you mosh it is my first time learning a programing language even thou i am not the smartest i still learned python i really mean im not the smartes look how i made the calculator
number = input("First: ")
P_nuber = input("second: ")
equal = float(number) + float(P_nuber)
print(equal)
i mean it works but againts yours it doesnt make any sense
Completely new to coding and have been teaching myself as a side project till I found this video. My code works and also allows the loop to confirm the information entered for both accuracy and formatting.
# Entering standard name line
information_correct = False
while not information_correct:
# Collecting the first name
first_name = input("Enter first name: ")
# Collecting the middle initial
while True:
middle_initial = input("Enter middle initial: ")
if len(middle_initial) == 1 and middle_initial.isalpha():
break # Exit the loop if the input is valid
else:
print("Invalid input. Please enter a single letter for middle initial and press Enter")
# Collecting the last name
last_name = input("Enter last name: ")
print("You entered", last_name, ",", first_name, middle_initial)
confirmation = input("Is this correct? (y/n): ")
if confirmation.lower() == "y":
print("Confirmed")
information_correct = True
elif confirmation.lower() == "n":
print("Please re-enter correct information.")
else:
print("Invalid response. Please enter 'y' for yes or 'n' for no.")
# Calculating for Age
import datetime
birthdate_correct = False
while not birthdate_correct:
# Collect birthdate using the format "YYYY-MM-DD"
birthdate = input("Enter birthdate (YYYY-MM-DD): ")
# Convert birthdate into a datetime object
try:
birthdate = datetime.datetime.strptime(birthdate, "%Y-%m-%d")
# Check to see if birthdate is in the future
current_date = datetime.datetime.now()
if birthdate > current_date:
print("Birthdate cannot be in the future. Please re-enter the correct birthdate.")
else:
birthdate_correct = True
except ValueError:
print("Invalid date format. Please use the format YYYY-MM-DD and re-enter the correct birthdate.")
continue # Continue to loop till a valid date is entered
# Calculate the age
age = current_date.year - birthdate.year - ((current_date.month, current_date.day) < (birthdate.month, birthdate.day))
# Display the age
print("Current age is:", age)
confirmation = input("Is this correct? (y/n): ")
if confirmation.lower() == "y":
print("Confirmed")
birthdate_correct = True
elif confirmation.lower() == "n":
print("Please re-enter correct information.")
else:
print("Invalid response. Please enter 'y' for yes or 'n' for no.")
exit()
If you would rather just enter the age you can use this code instead of calculating for age using the birthdate.
# Entering Age
information_correct = False
while not information_correct:
age = input("Enter age: ")
print("You entered", age)
confirmation = input("Is this correct? (y/n): ")
if confirmation.lower() == "y":
print("Confirmed")
information_correct = True
elif confirmation.lower() == "n":
print("Please re-enter correct information.")
else:
print("Invalid response. Please enter 'y' for yes or 'n' for no.")
I hope this helps people.
👏👏
Ответитьfirst_name = Josh
last_name = Smith
age = 20
new_patient = True
my code is
first_name="jhon_smith"
age=20
new_patient=True
print(first_name)
print(age)
print("is new paitent")
Hello, I'm student from Sri Lanka. I'm learning python for improve my skills. but my dream is become a physics scientist. However thank you for your video.
Ответитьweight = int(input("how much is your weight? "))
unit = input("lbs or kgs? ")
if unit == "kgs":
print("then you have "+str(int(weight) *2)+" lbs")
elif unit == "lbs":
print("then you have "+str(int(weight)/2)+ " kgs")
Learning to make games
Ответитьprint(“new_patient”)
print(“age 20”)
name = “John_Smith”
print(“name “ + name)
name = John Smith
age = 20
is new = true
lol i was way off for this activity
weight = int(input("What is your weight? "))
input("Kg or Lbs? ")
if weight: == "kg".upper()
input(weight * 0.45)
else weight: == "Lbs".upper()
input(weight / 0.45)
Pycharm is not free anymore, I can not complete any of the online videos because they only want subscrition, so I cant use this video. Unless you redo the video using python IDLE, which is what I have downloaded...which I can not find any video tutorials using so far..or if you know of any videos created using the IDLE programme.
ОтветитьName_of_patient = John_Smith
Age = 20
Patient = New
x = 3 == 2+1
print(x)
x = 3 here also
n1 = input('enter your first number')
n2 = input('enter your second number')
sum = int(n1) + int(n2)
print(sum)
weight=float(input("Weight: "))
unit=input("(K)g or (L)bs: ")
kg=str(weight*0.45)
lbs=str(weight/0.45)
if unit=='k' or unit=='K':
print("Weight in Kg: "+kg)
elif unit=='l' or unit=='L':
print("Weight in Lbs: "+lbs)
else:
print("You've entered a wrong option")