السؤال الاول: .Use an f-string to print "Hello, [your name]!" by inserting your name into the string
السؤال الثاني : .Given a date as year = 2023, month = 7, and day = 15, use an f-string to format and print the date as "2023-07-15".
السؤال الثالث : .Question: Given a list of numbers, calculate and print its average using an f-string.
السؤال الرابع : .Given a full name in the format "First Name Last Name", use an f-string to reverse the names to the format "Last Name, First Name"
Ask the user to enter a password until it matches a pre-defined password
السؤال الخامس :.correct_password = "python123"
السؤال السادس : .Prompt the user for numbers (one at a time) and keep a running total. Stop when the user enters "stop", then display the total sum
السؤال السابع : . Write a program that prints numbers from 10 to 1 in decreasing order using a while loop
السؤال الثامن : . Ask the user for a word and print it twice using a while loop
السؤال التاسع : .Keep asking the user for input and print the input until the user types "exit"
السؤال
Hader Mansour
السؤال الاول: .Use an f-string to print "Hello, [your name]!" by inserting your name into the string
السؤال الثاني : .Given a date as year = 2023, month = 7, and day = 15, use an f-string to format and print the date as "2023-07-15".
السؤال الثالث : .Question: Given a list of numbers, calculate and print its average using an f-string.
السؤال الرابع : .Given a full name in the format "First Name Last Name", use an f-string to reverse the names to the format "Last Name, First Name"
Ask the user to enter a password until it matches a pre-defined password
السؤال الخامس :.correct_password = "python123"
السؤال السادس : .Prompt the user for numbers (one at a time) and keep a running total. Stop when the user enters "stop", then display the total sum
السؤال السابع : . Write a program that prints numbers from 10 to 1 in decreasing order using a while loop
السؤال الثامن : . Ask the user for a word and print it twice using a while loop
السؤال التاسع : .Keep asking the user for input and print the input until the user types "exit"
1 جواب على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.