1-intro
1-intro
April 3, 2023
parth sarin (they/them) tara jones (she/her)
Will Fang Chase Joyner Arpit Ranasaria
$ javac HelloWorld.java
$ java HelloWorld
Hello world!
Case Study: Hello World
Case Study: Hello World
// C++
Case Study: Hello World
// C++
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}
Case Study: Hello World
// C++
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}
$ g++ helloWorld.cpp
$ ./a.out
Hello world!
Case Study: Hello World
Case Study: Hello World
print("Hello world!")
Case Study: Hello World
print("Hello world!")
$ python helloworld.py
Hello world!
Case Study: Int Size
Case Study: Int Size
// C++
Case Study: Int Size
// C++
#include <iostream>
using namespace std;
int main() {
cout << sizeof(41) << endl;
return 0;
}
Case Study: Int Size
// C++
#include <iostream>
using namespace std;
int main() {
cout << sizeof(41) << endl;
return 0;
}
$ g++ intSize.cpp
$ ./a.out
4
Case Study: Int Size
Case Study: Int Size
print((41).__sizeof__())
Case Study: Int Size
print((41).__sizeof__())
$ python intsize.py
28
>>> import this
>>> import this
The Zen of Python, by Tim Peters
fi
Logistics
Website https://stanfordpython.com
Ed Discussion, Ed workspaces, link on the website
Canvas Section sign-up, link on the website (assignments tab)
Groups Link on the website (assignments tab)
Assignments 3 assignments + a nal project
A0 is individual, the rest are in groups
Grading No grades on any assignments, feedback only
Overall course grade is based on completion
fi
Logistics
Website https://stanfordpython.com
Ed Discussion, Ed workspaces, link on the website
Canvas Section sign-up, link on the website (assignments tab)
Groups Link on the website (assignments tab)
Assignments 3 assignments + a nal project
A0 is individual, the rest are in groups
Grading No grades on any assignments, feedback only
Overall course grade is based on completion
Labs Class on Tuesday, Lab on Thursday
fi
Logistics
Website https://stanfordpython.com
Ed Discussion, Ed workspaces, link on the website
Canvas Section sign-up, link on the website (assignments tab)
Groups Link on the website (assignments tab)
Assignments 3 assignments + a nal project
A0 is individual, the rest are in groups
Grading No grades on any assignments, feedback only
Overall course grade is based on completion
Labs Class on Tuesday, Lab on Thursday
Playlist Link on the website
fi
Logistics
Website https://stanfordpython.com
Ed Discussion, Ed workspaces, link on the website
Canvas Section sign-up, link on the website (assignments tab)
Groups Link on the website (assignments tab)
Assignments 3 assignments + a nal project
A0 is individual, the rest are in groups
Grading No grades on any assignments, feedback only
Overall course grade is based on completion
Labs Class on Tuesday, Lab on Thursday
Playlist Link on the website
Masking Masks recommended, safety is the priority
fi
Unicornelius (any/all)
The Road Ahead
The Road Ahead