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
# done by nadia alotaibi 208115517, wjood alajmi 208217252, marwa adel 208115357, sara alkaldy 206216912 | |
import tweepy | |
import sys | |
from tweepy.error import TweepError | |
#retrave 100 tweet | |
while 1: | |
x=raw_input("for Q1 ENTER (tweets) for Q2 ENTER (mentions) for Q3 ENTER(hashtags) and to exit ENTER (quit),please: ") | |
if x=="tweets": |
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
#done by :nadia alotaibi,wojood alajmi,sara alkahaldy,marow adel | |
#pip install tweepy | |
import tweepy | |
from tweepy.error import TweepError | |
import json | |
api = tweepy.API(auth) | |
##retreave 100 tweets | |
tweets = tweepy.api.user_timeline("mis350") |
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
pip install | |
git+git://github.com/joshthecoder/tweepy.git. | |
import tweepy | |
import sys | |
import webbrowser | |
import json | |
import osimport mimetypesfrom tweepy.binder | |
import bind_apifrom tweepy.error | |
import TweepErrorfrom tweepy.parsers |
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
#nadia | |
#wjowd | |
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}, |
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
#nadia | |
#wjowd | |
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}, |
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
#done by nadia , wojod , sara , marwa | |
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, }, |
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
nadia al-otaibi 208115517 | |
wjood al-ajmi 208217252 | |
#Create a program that continuously runs asking the user for his name | |
# Show a customized greeting message after the user enters his name | |
x=1 | |
while x==1: |
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
my_list = ["my name is nadia ", "21 years old ",3.50 ,208115517 ] | |
for i in my_list: | |
print "student info is %r" % i | |
my_map = { "student a GPA: " : 4 ,"student B GPA:" : 3 ,"student C GPA:" : 2 ,"student C GPA:":1} | |
for x in my_map: | |
print x , my_map[x] | |
count=0 | |
while count < 6 : | |
print 'the count is:' , count |