Ge3171 Ai&ds
Ge3171 Ai&ds
Ge3171 Ai&ds
3. Write a program to create, concatenate and print a string and accessing substring from a given
string.
4.
Write a python script to print the current date in following format “Sun May 29 02:26:23 IST 2017”
Write a python program to construct the following pattern using nested for loop:
10.
*
**
***
****
Page 1 of 2
*****
*****
****
***
**
*
11. Write a python program to print prim numbers less than 20:
13.
Write a python program to that accepts length of three sides of a triangle as inputs. The program
should indicate whether or not the triangle is a rightangled triangle (use Pythagorean theorem):
Write a python program to define a module to find Fibonacci Numbers and import the module to
14.
another program
Write a python program to define a module and import a specific function in that module to
15.
another program.
16. Write a script named copyfile.py. This script should prompt the user for the names of two text files.
The contents of the first the second file.
Source code: create a text file as “input.txt” and write some date in it. This will be used in the
program. with open("input.txt") as input:
with open("output.txt","w") as for line in input: output.
write(line) print("JOB DONE!!")
Write a program that inputs a text file. The program should print all of the unique words in the file
17.
in alphabetical order
20. Implementing programs using written modules and Python Standard Libraries (pandas, numpy.)
Page 2 of 2