Super11 Asia Cup 2023 _ Match 6 _ Afghanistan vs Sri Lanka
Super11 Asia Cup 2023 _ Match 6 _ Afghanistan vs Sri Lanka
2
views
OSIRIS-REx Asteroid Sample Return Mission Overview (Official NASA Briefing)
Experts from NASA’s OSIRIS-REx (Origins, Spectral Interpretation, Resource Identification, and Security–Regolith Explorer) mission give an overview on the asteroid sample capsule’s landing and recovery plans set for Sept. 24, 2023.
News conference participants are:
• Melissa Morris, OSIRIS-REx program executive, NASA Headquarters, Washington
• Dante Lauretta, OSIRIS-REx principal investigator, University of Arizona, Tucson
• Rich Burns, OSIRIS-REx project manager, NASA’s Goddard Space Flight Center, Greenbelt, Maryland
• Sandra Freund, OSIRIS-REx program manager, Lockheed Martin, Littleton, Colorado
• Kevin Righter, OSIRIS-REx deputy curation lead, NASA’s Johnson Space Center, Houston
On Sept. 24, the OSIRIS-REx spacecraft will approach Earth and release its sample return capsule into the atmosphere on a path to land at the Department of Defense’s Utah Test and Training Range. The event makes it the first U.S. asteroid sample return.
The touchdown will mark the end of a seven-year journey to explore asteroid Bennu, collect a sample from its surface, and deliver it to Earth for study. Scientists around the world will study the sample over the coming decades to learn about how our planet and solar system formed, as well as the origin of organics that may have led to life on Earth.
Credit: NASA
6
views
Super11 Asia Cup 2023 _ Match 1 Pakistan VS Nepal Highlights
Match 1 Highlights: Pakistan VS Nepal | Super11 Asia Cup 2023
4
views
Afghanistan vs Pakistan Cricket Full Match Highlights (2nd ODI) _ Super Cola Cup _ ACB
Afghanistan vs Pakistan Cricket Full Match Highlights (2nd ODI) _ Super Cola Cup _ ACB
Afghanistan, banking on a fine batting display from Rahmanullah Gurbaz (151), Ibrahim Zadran (80), and Mohammad Nabi (29) put 300/5 runs on the board. They started the 2nd inning well and kept taking wickets but Imam Ul Haq (91), Babar Azam (53), and Shadab Khan (48) batted well to keep Pakistan in the game until Naseem Shah (10*) struck two boundaries in the final over to help Pakistan win a nail-biting game by 1 wicket and take 2-0 lead in the series.
Watch the full match highlights of the 2nd of the three-match-match Super Cola Cup three-match ODI Series 2023, powered by Marhaba Auctions.
#AfghanAtalan #AFGvPAK #SuperColaCup #ByaMaidanGato
4
views
Afghanistan vs Pakistan Cricket Full Match Highlights (3rd ODI) _ Super Cola Cup _ ACB
Afghanistan vs Pakistan Cricket Full Match Highlights (3rd ODI) _ Super Cola Cup _ ACB
Pakistan, banking on a solid batting effort, managed to put 268/8 in the first inning and backed up the batting effort with a good bowling display in the 2nd inning to bundle AfghanAtalan out for 209 runs to win the 3rd & final ODI of the Super Cola Cup three-match ODI Series by 59 runs and won the series 3-0.
#AfghanAtalan | #AFGvPAK | #SuperColaCup | #ByaMaidanGato
5
views
Afghanistan vs Pakistan Cricket Full Match Highlights (1st ODI) _ Super Cola Cup _ ACB
Afghanistan vs Pakistan Cricket Full Match Highlights (1st ODI) | Super Cola Cup | Afghanistan Cricket Board
AfghanAtalan bowled well in the 1st inning as they restricted Pakistan to 201 runs but failed to chase the target as they had no answer to an incredible bowling performance by Pakistan, led by Haris Rauf who returned with some excellent figures of 5/18 off his 6.2 overs. Afghanistan only managed to score 59 runs to fall short by 142 runs in the first of the three-match Super Cola Cup ODI Series. Watch the full highlights of the match here:
#AfghanAtalan #AfgVsPak #SuperColaCup #ByaMaidanGato
5
views
NASA Science Live_ The Summer of Record-Breaking Heat
This summer, Earth has been experiencing some of the hottest temperatures on record and July is shaping up to follow this record-breaking trend. Join NASA climate experts on Monday, Aug. 14 as they discuss impacts of climate change, and how data can be used to mitigate its effects.
Submit your questions in our live chat.
More on NASA's climate research: https://climate.nasa.gov
Credit: NASA
9
views
NASA, NOAA Climate Experts Discuss Record-Breaking Heat (Official News Briefing)
On the heels of record-breaking June temperatures, climate experts from NASA and NOAA (the National Oceanographic and Atmospheric Administration) will discuss the latest findings, and how using satellite data can help manage the effects of climate change.
Participants include:
• Bill Nelson, administrator, NASA
• Kate Calvin, chief scientist and senior climate advisor, NASA Headquarters
• Karen St. Germain, director, Earth Science Division, NASA Headquarters
• Gavin Schmidt, director, NASA Goddard Institute for Space Studies, New York
• Carlos Del Castillo, chief, Ocean Ecology Laboratory at NASA Goddard Space Flight Center in Greenbelt, Maryland
• Sarah Kapnick, chief scientist, NOAA
Then, join us at 3:30 p.m. EDT (1930 UTC) for a NASA Science Live episode to discuss recent climate trends. Ask questions in our live chat and they may get answered on air: https://www.youtube.com/live/HZ3q7yAr...
Credit: NASA
5
views
Earth Information Center Opening Ceremony at NASA Headquarters (Official NASA Broadcast)
Watch the opening and ribbon-cutting ceremony for the Earth Information Center at NASA Headquarters in Washington. The exhibit is a hybrid – part physical, part online – effort that shows how viewing Earth from space can improve lives in the face of disasters, environmental challenges, and climate change. Speakers include NASA Administrator Bill Nelson; Kate Calvin, NASA chief scientist and senior climate advisor; and Karen St. Germain, the director of NASA’s Earth Sciences Division. Agency partner representatives will also speak.
NASA created the Earth Information Center with founding partners National Oceanic and Atmospheric Administration (NOAA), U.S. Geological Survey (USGS), U.S. Department of Agriculture (USDA), U.S. Agency for International Development (USAID), Environmental Protection Agency (EPA), and Federal Emergency Management Administration (FEMA).
Link to download this video: https://images.nasa.gov/details/NASA%...
Image Credit: NASA Earth Observatory image by Joshua Stevens, using Suomi NPP VIIRS data from Miguel Román, NASA GSFC
Credit: NASA
5
views
NASA Science Live_ Webb's First Year
This month marks one year since the James Webb Space Telescope astonished the world with the release of its first images and data. Since then, the observatory has been transforming the way we see the universe, from revealing details of planets and moons in our own solar system, to providing new understanding of how stars and galaxies form.
Join experts on Wednesday, July 12, as they highlight Webb’s first year of science and answer your questions about the mission. Submit questions during our live chat.
Revisit the first images: https://www.nasa.gov/webbfirstimages
Explore everything Webb, including more hi-res images: https://webbtelescope.org/
Credit: NASA
1
view
Working with Dates and Times |Section 6|Celestial Warrior
Here is a tricky exercise.
1.Please download thethree text files attached in this lecture and put them in a folder. The first text file contains the textContent1.The second contains Content2and the third Content3.
2. You should create a Python script that generates a new text file which should contain the content of all three text files. So the generated file should have this content:
Content1
Content2
Content3
In other words, your Pythonscript should merge the three text files.
3. Also, the name of the output file should be the current timestamp. Example:2017-11-01-13-57-39-170965.txt
You have some tips in the next lecture and the solution in the lecture afterthat.
1. Consider using the glob2 third-party library to generate a list of filenames to iterate through.
2. Use a "with" statement to create a new text file and then iterate through the file list inside that "with"statement and open andread existing file contentsin each iterationand write them to new text file.
import glob2
import datetime
filenames=glob2.glob("*.txt")
with open(datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S-%f")+".txt", 'w') as file:
for filename in filenames:
with open(filename,"r") as f:
file.write(f.read()+"\n")
1
view
The With Statement |Section 5|Celestial Warrior
Please take a look at the following code:
temperatures=[10,-20,-289,100]
def c_to_f(c):
if c< -273.15:
return "That temperature doesn't make sense!"
else:
f=c*9/5+32
return f
for t in temperatures:
print(c_to_f(t))
The code prints outthe output of thec_to_f function multiple times in the terminal.
For this exercise,please write the outputin a text file instead of printing it out in the terminal.
The text file content will look like this:
50.0
-4.0
212.0
Please don't writeany messagein the text file when input is lowerthan -273.15.
One solution could be to open a file once and then iterate inside the functionwhile the file is open:
temperatures=[10,-20,-289,100]
def writer(temperatures):
with open("temps.txt", 'w') as file:
for c in temperatures:
if c>-273.15:
f=c*9/5+32
file.write(str(f)+"\n")
writer(temperatures)#Here we're calling the function, otherwise no output will be generated
Or even better, you could treat both the temperature input and the file path as function arguments:
temperatures=[10,-20,-289,100]
def writer(temperatures, filepath):
with open(filepath, 'w') as file:
for c in temperatures:
if c>-273.15:
f=c*9/5+32
file.write(str(f)+"\n")
writer(temperatures, "temps.txt")#Here we're calling the function, otherwise no output will be generated
In real life you may want to build a website with Python so you connectthe function callwriter()with a button on the website. The user enters some values in a text box, and types in a file name and thenpresses the button. The button executes the writer()function by using the input that user entered in the text box as input values for the function. Once the button is pressed,the generatedfile downloads on the user's browser.
Sure, that's a bit of a demanding project to do but Iwill take you step by step in later sections on how to do such web applications.
8
views
Opening and Writing Text to a Text File |Section 5|Celestial Warrior
Please write some code thatcreates a text file and writesthe items oflist numbers = [1, 2, 3]to that text file.
The text file content should look like following:
1
2
3
Note that the write() method takes only string datatypes so you may need to convert integers to strings in order to be able to write them in a file.
numbers = [1, 2, 3]
file = open("numbers.txt", "w")
for i in numbers:
file.write(str(i) + "\n")
file.close()
1
view
Opening and Reading a File |Section 5| Celestial Warrior
Please download the text file from the attachment.
Then write some code that reads the content of the file andgenerates the following output in the command line:
pear
apple
orange
mandarin
watermelon
pomegranate
file = open("fruits.txt", "r")
content = file.read()
file.close()
print(content)
Please modify thecode of the previous exerciseso that instead of printing out thelines in the terminal, it prints out the length of each line.
Expected output:
4
5
6
8
10
11
file = open("fruits.txt", "r")
content = file.readlines()
file.close()
for i in content:
print(len(i.strip()))
1
view
For Loop with Multiple Lists |Section 4|Celestial Warrior
In one of the previous exercises we created the following function that gets Celsius degrees as input and returns Fahrenheit, or a message if the Celsius inputvalue is less than -273.15.
def c_to_f(c):
if c< -273.15:
return "That temperature doesn't make sense!"
else:
f=c*9/5+32
return f
Please implement a for loop that iterates through the following temperatures list temperatures=[10,-20,-289,100]and calls the above c_to_f function in each iteration. In other words, this timeyou are using the function to calculatea series of values instead of just one value.
The expected output:
50.0
-4.0
That temperature doesn't make sense!
212.0
temperatures=[10,-20,-289,100]
def c_to_f(c):
if c< -273.15:
return "That temperature doesn't make sense!"
else:
f=c*9/5+32
return f
for t in temperatures:
print(c_to_f(t))
1
view
The For Loop |Section 4|Celestial Warrior
Create a for loop blockthat iterates through the following list and prints out each item of the list in each iteration.
mylist = [1, 2, 3, 4, 5]
Expected output:
1
2
3
4
5
mylist = [1, 2, 3, 4, 5]
for i in mylist:
print(i)
Create a for loop that iterates through all the items of the following list and prints out the item if the item is greater than 2.
mylist = [1, 2, 3, 4, 5]
Expected output:
3
4
5
mylist = [1, 2, 3, 4, 5]
for i in mylist:
if i > 2:
print(i)
2
views