|
179 | 179 | "execution_count": 7,
|
180 | 180 | "metadata": {},
|
181 | 181 | "outputs": [
|
| 182 | + { |
| 183 | + "name": "stdout", |
| 184 | + "output_type": "stream", |
| 185 | + "text": [ |
| 186 | + "What is your name?\n" |
| 187 | + ] |
| 188 | + }, |
182 | 189 | {
|
183 | 190 | "data": {
|
184 | 191 | "text/plain": [
|
185 |
| - "'Caleb'" |
| 192 | + "''" |
186 | 193 | ]
|
187 | 194 | },
|
188 | 195 | "execution_count": 7,
|
|
210 | 217 | "name": "stdout",
|
211 | 218 | "output_type": "stream",
|
212 | 219 | "text": [
|
213 |
| - "ACGTATAGCA\n" |
| 220 | + "Please Enter a DNA sequence: \n", |
| 221 | + "\n" |
214 | 222 | ]
|
215 | 223 | }
|
216 | 224 | ],
|
|
227 | 235 | "name": "stdout",
|
228 | 236 | "output_type": "stream",
|
229 | 237 | "text": [
|
230 |
| - "wxtylkas\n" |
| 238 | + "Please Enter aa sequence: \n", |
| 239 | + "\n" |
231 | 240 | ]
|
232 | 241 | }
|
233 | 242 | ],
|
|
263 | 272 | "Welcome to Python 3.6's help utility!\n",
|
264 | 273 | "\n",
|
265 | 274 | "If this is your first time using Python, you should definitely check out\n",
|
266 |
| - "the tutorial on the Internet at https://docs.python.org/3.6/tutorial/.\n", |
| 275 | + "the tutorial on the Internet at http://docs.python.org/3.6/tutorial/.\n", |
267 | 276 | "\n",
|
268 | 277 | "Enter the name of any module, keyword, or topic to get help on writing\n",
|
269 | 278 | "Python programs and using Python modules. To quit this help utility and\n",
|
|
274 | 283 | "with a one-line summary of what it does; to list the modules whose name\n",
|
275 | 284 | "or summary contain a given string such as \"spam\", type \"modules spam\".\n",
|
276 | 285 | "\n",
|
277 |
| - "Help on built-in function print in module builtins:\n", |
278 |
| - "\n", |
279 |
| - "print(...)\n", |
280 |
| - " print(value, ..., sep=' ', end='\\n', file=sys.stdout, flush=False)\n", |
281 |
| - " \n", |
282 |
| - " Prints the values to a stream, or to sys.stdout by default.\n", |
283 |
| - " Optional keyword arguments:\n", |
284 |
| - " file: a file-like object (stream); defaults to the current sys.stdout.\n", |
285 |
| - " sep: string inserted between values, default a space.\n", |
286 |
| - " end: string appended after the last value, default a newline.\n", |
287 |
| - " flush: whether to forcibly flush the stream.\n", |
288 |
| - "\n", |
| 286 | + "help> \n", |
289 | 287 | "\n",
|
290 | 288 | "You are now leaving help and returning to the Python interpreter.\n",
|
291 | 289 | "If you want to ask for help on a particular object directly from the\n",
|
|
310 | 308 | "execution_count": 11,
|
311 | 309 | "metadata": {},
|
312 | 310 | "outputs": [
|
| 311 | + { |
| 312 | + "name": "stdout", |
| 313 | + "output_type": "stream", |
| 314 | + "text": [ |
| 315 | + "Enter your name: \n" |
| 316 | + ] |
| 317 | + }, |
313 | 318 | {
|
314 | 319 | "data": {
|
315 | 320 | "text/plain": [
|
316 |
| - "'Caleb'" |
| 321 | + "''" |
317 | 322 | ]
|
318 | 323 | },
|
319 | 324 | "execution_count": 11,
|
|
957 | 962 | },
|
958 | 963 | {
|
959 | 964 | "cell_type": "code",
|
960 |
| - "execution_count": null, |
| 965 | + "execution_count": 35, |
961 | 966 | "metadata": {},
|
962 |
| - "outputs": [], |
| 967 | + "outputs": [ |
| 968 | + { |
| 969 | + "data": { |
| 970 | + "text/plain": [ |
| 971 | + "True" |
| 972 | + ] |
| 973 | + }, |
| 974 | + "execution_count": 35, |
| 975 | + "metadata": {}, |
| 976 | + "output_type": "execute_result" |
| 977 | + } |
| 978 | + ], |
963 | 979 | "source": [
|
964 | 980 | "z = 2\n",
|
965 | 981 | "z == 2"
|
966 | 982 | ]
|
967 | 983 | },
|
968 | 984 | {
|
969 | 985 | "cell_type": "code",
|
970 |
| - "execution_count": null, |
| 986 | + "execution_count": 36, |
971 | 987 | "metadata": {},
|
972 |
| - "outputs": [], |
| 988 | + "outputs": [ |
| 989 | + { |
| 990 | + "data": { |
| 991 | + "text/plain": [ |
| 992 | + "False" |
| 993 | + ] |
| 994 | + }, |
| 995 | + "execution_count": 36, |
| 996 | + "metadata": {}, |
| 997 | + "output_type": "execute_result" |
| 998 | + } |
| 999 | + ], |
973 | 1000 | "source": [
|
974 | 1001 | "z > 2"
|
975 | 1002 | ]
|
|
983 | 1010 | },
|
984 | 1011 | {
|
985 | 1012 | "cell_type": "code",
|
986 |
| - "execution_count": null, |
| 1013 | + "execution_count": 37, |
987 | 1014 | "metadata": {},
|
988 |
| - "outputs": [], |
| 1015 | + "outputs": [ |
| 1016 | + { |
| 1017 | + "data": { |
| 1018 | + "text/plain": [ |
| 1019 | + "False" |
| 1020 | + ] |
| 1021 | + }, |
| 1022 | + "execution_count": 37, |
| 1023 | + "metadata": {}, |
| 1024 | + "output_type": "execute_result" |
| 1025 | + } |
| 1026 | + ], |
989 | 1027 | "source": [
|
990 | 1028 | "0.5 < z <= 1"
|
991 | 1029 | ]
|
|
1003 | 1041 | },
|
1004 | 1042 | {
|
1005 | 1043 | "cell_type": "code",
|
1006 |
| - "execution_count": null, |
| 1044 | + "execution_count": 38, |
1007 | 1045 | "metadata": {},
|
1008 | 1046 | "outputs": [],
|
1009 | 1047 | "source": [
|
|
1012 | 1050 | },
|
1013 | 1051 | {
|
1014 | 1052 | "cell_type": "code",
|
1015 |
| - "execution_count": null, |
| 1053 | + "execution_count": 39, |
1016 | 1054 | "metadata": {},
|
1017 |
| - "outputs": [], |
| 1055 | + "outputs": [ |
| 1056 | + { |
| 1057 | + "data": { |
| 1058 | + "text/plain": [ |
| 1059 | + "True" |
| 1060 | + ] |
| 1061 | + }, |
| 1062 | + "execution_count": 39, |
| 1063 | + "metadata": {}, |
| 1064 | + "output_type": "execute_result" |
| 1065 | + } |
| 1066 | + ], |
1018 | 1067 | "source": [
|
1019 | 1068 | "# we can check if a given motif is in sequence\n",
|
1020 | 1069 | "\n",
|
|
1023 | 1072 | },
|
1024 | 1073 | {
|
1025 | 1074 | "cell_type": "code",
|
1026 |
| - "execution_count": null, |
| 1075 | + "execution_count": 40, |
1027 | 1076 | "metadata": {},
|
1028 |
| - "outputs": [], |
| 1077 | + "outputs": [ |
| 1078 | + { |
| 1079 | + "data": { |
| 1080 | + "text/plain": [ |
| 1081 | + "True" |
| 1082 | + ] |
| 1083 | + }, |
| 1084 | + "execution_count": 40, |
| 1085 | + "metadata": {}, |
| 1086 | + "output_type": "execute_result" |
| 1087 | + } |
| 1088 | + ], |
1029 | 1089 | "source": [
|
1030 | 1090 | "# We can also check if a given motif is absent\n",
|
1031 | 1091 | "\n",
|
|
1034 | 1094 | },
|
1035 | 1095 | {
|
1036 | 1096 | "cell_type": "code",
|
1037 |
| - "execution_count": null, |
| 1097 | + "execution_count": 41, |
1038 | 1098 | "metadata": {},
|
1039 |
| - "outputs": [], |
| 1099 | + "outputs": [ |
| 1100 | + { |
| 1101 | + "data": { |
| 1102 | + "text/plain": [ |
| 1103 | + "'ATTAAGGCTGTT'" |
| 1104 | + ] |
| 1105 | + }, |
| 1106 | + "execution_count": 41, |
| 1107 | + "metadata": {}, |
| 1108 | + "output_type": "execute_result" |
| 1109 | + } |
| 1110 | + ], |
1040 | 1111 | "source": [
|
1041 | 1112 | "#we can concatentate two strings\n",
|
1042 | 1113 | "\n",
|
|
1045 | 1116 | },
|
1046 | 1117 | {
|
1047 | 1118 | "cell_type": "code",
|
1048 |
| - "execution_count": null, |
| 1119 | + "execution_count": 42, |
1049 | 1120 | "metadata": {},
|
1050 |
| - "outputs": [], |
| 1121 | + "outputs": [ |
| 1122 | + { |
| 1123 | + "data": { |
| 1124 | + "text/plain": [ |
| 1125 | + "'GGCTGTTGGCTGTTGGCTGTTGGCTGTT'" |
| 1126 | + ] |
| 1127 | + }, |
| 1128 | + "execution_count": 42, |
| 1129 | + "metadata": {}, |
| 1130 | + "output_type": "execute_result" |
| 1131 | + } |
| 1132 | + ], |
1051 | 1133 | "source": [
|
1052 | 1134 | "# Create a long string from a substring by multiplying with an integer\n",
|
1053 | 1135 | "'GGCTGTT' * 4"
|
|
1059 | 1141 | "source": [
|
1060 | 1142 | "We'll continue with string formatting in the next lecture. "
|
1061 | 1143 | ]
|
1062 |
| - }, |
1063 |
| - { |
1064 |
| - "cell_type": "code", |
1065 |
| - "execution_count": null, |
1066 |
| - "metadata": {}, |
1067 |
| - "outputs": [], |
1068 |
| - "source": [] |
1069 |
| - }, |
1070 |
| - { |
1071 |
| - "cell_type": "code", |
1072 |
| - "execution_count": null, |
1073 |
| - "metadata": {}, |
1074 |
| - "outputs": [], |
1075 |
| - "source": [] |
1076 | 1144 | }
|
1077 | 1145 | ],
|
1078 | 1146 | "metadata": {
|
|
1091 | 1159 | "name": "python",
|
1092 | 1160 | "nbconvert_exporter": "python",
|
1093 | 1161 | "pygments_lexer": "ipython3",
|
1094 |
| - "version": "3.6.5" |
| 1162 | + "version": "3.6.4" |
1095 | 1163 | }
|
1096 | 1164 | },
|
1097 | 1165 | "nbformat": 4,
|
|
0 commit comments