خوب توی این جلسه فصل دوم و سوم کتاب رو خوندیم با مثالهای متعدد .
این قسمت راجع به :
کاربردهای پایتون
معرفی چند پلت فرم و کتابخانه برای هر کدوم از این کار برد ها
اپراتورهای ریاضی و منطقی
آشنایی با کتابخانه ریاضی math و مثال
لیست List کاربردها و مثال
تاپل Tuple کاربردها و مثال
دیکشنری Dictionary کاربردها و مثال
مثال لود کردن فایل اکسل و گزارش گیری Pivot_Table ساده
خوب حالا 2 تا تمرین جهت خودتون ، انا رو حتما انجام بدین و بفرستین، بعضی هاش رو جلسات دیگه حل می کنیم.
Assignment #1
Deference and use case of each between list dictionary tuple
provide a list of students in class( create in list type) convert it to tuple and dictionary type and give out put.
Assignment #2
tell something about Pandas and Numpy libraries and common use cases
بعد فصل سوم رو شروع کردیم :
if ( condition):
.
else:
.
و راجع به indented block
و همینطور تمرینهای 3 تا 5
Assignment #3
Ask the user for a number. Depending on whether the number is even or odd, print out an appropriate message.
Assignment #4
Ask the user for a string and print out whether this string is a palindrome or not. (A palindrome is a string that reads the same forwards and backwards.)
Assignment #5
Take two lists, say for example these two: a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] and write a program that returns a list (c) that contains only the elements that are common between the lists (without duplicates). Make sure your program works on two lists of different sizes.
حجم فایل 70MB و مدت حدود 49 دقیقه.
a ,and ,the ,list ,رو ,that ,کاربردها و ,two lists ,a list ,the user ,user for
درباره این سایت