This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#please note dr. that this mini project was worked by: Farah AlFudalah 208112790 , Alyaa Al Zamil 208113205 , Munera Al Rkhayis 208116608 | |
import tweepy | |
#for retriveing 100 tweets | |
username = raw_input("Please enter your username: ") | |
tweet_list = [] | |
print """ The users tweets are below: | |
===================================== | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#this project done by munera alrkhayes, alyaa alzamil, farah alfadhala | |
import tweepy | |
#for retriveing 100 tweets | |
tweet_list = [] | |
print """ the users tweets are below : """ | |
Public_tweets= tweepy.api.user_timeline ('mis350',page=1) | |
for tweet in Public_tweets : | |
tweet_list.append (tweet.text) | |
print tweet.text | |
Public_tweets= tweepy.api.user_timeline ('mis350',page=2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""This is ex done by group : munera alrkhayes , farah alfedala , alya alzamil"""" | |
data = [ | |
{"name":"Ali Khalid", "weight":80.6, "height":1.78}, | |
{"name":"Dalal Yousef", "weight":52.2, "height":1.65}, | |
{"name":"Deema Sulaiman", "weight":160, "height":1.80}, | |
{"name":"Aseel Salim", "weight":42.8, "height":1.67}, | |
{"name":"Bader Abdulla", "weight":96, "height":1.79}, | |
{"name":"Abrar Adel", "weight":77, "height":1.60}, | |
{"name":"Mohammed Fahad", "weight":75.4, "height":1.91}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class_data = [ | |
{"name":"Mohammed Abdulla", "id":2008021080, "grade":91, }, | |
{"name":"Ali Ahmad", "id":2009011022, "grade":68, }, | |
{"name":"Ahmad Mohammad", "id":2008011085, "grade":74, }, | |
{"name":"Salem Sulaiman", "id":2007011033, "grade":97, }, | |
{"name":"Sara Fareed", "id":2008011003, "grade":85, }, | |
{"name":"Maha Khaled", "id":2006021087, "grade":93, }, | |
{"name":"Mneera Abdulla", "id":2008011019, "grade":60, }, | |
{"name":"Abdulaziz Ali", "id":2008021020, "grade":75, }, | |
{"name":"Sami Hamad", "id":2007011095, "grade":50, }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""This ex4 have been done as group work By Alyaa Alzamil 208113205 , Farah Alfudala 208112790 , Munera ALrkhayes 208116608 AND notice that the ex below have the answers with dashes to be clear each part belong to A, B, C... """ | |
class_data = [ | |
{"name":"Mohammed Abdulla", "id":2008021080, "grade":91, }, | |
{"name":"Ali Ahmad", "id":2009011022, "grade":68, }, | |
{"name":"Ahmad Mohammad", "id":2008011085, "grade":74, }, | |
{"name":"Salem Sulaiman", "id":2007011033, "grade":97, }, | |
{"name":"Sara Fareed", "id":2008011003, "grade":85, }, | |
{"name":"Maha Khaled", "id":2006021087, "grade":93, }, | |
{"name":"Mneera Abdulla", "id":2008011019, "grade":60, }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
a) Write a program that gives the letter grade of each student in 350 | |
and whether the student passed or not | |
b) The program should also calculate the class average, min, and max grade | |
c) Improve the program to use functions | |
d) Try to distribute your functions across modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is ex. 3 solution we worked as group to solve it. | |
Alyaa Al Zamil 208113205, Farah Alfudhala 208112790 , Munera Alrkhayes 208116608 | |
print "what's your name?" | |
name = raw_input() | |
print "welcome: " , name | |
#specific greeting for certain first names | |
if name == "Alyaa" : | |
print "Hello Alyaa" | |
elif name == "Farah" : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1- | |
X=["hello",100,40.5,-5000000] | |
for B in X: | |
print B | |
2- | |
mohamed = {"name": "mohamed", "age": 40, "pay": 20000, "job": "driver"} | |
mohamed={} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#python/filename.py | |
#cmd - python - x = ' ... ' | |
x = 'mohammed' | |
y = 'hello' | |
print x , y | |
z = y | |
z = 5 | |
#quit() | |
#python my program.py | |
print z |