|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
..........
................
|
|
#2
|
||||
|
||||
|
__________________
Warning, the post above may contain extreme sarcasm, crude language, and code that may confuse amateurs and professionals. Helpful stuff: Google your question first | Read the rules | How to ask a question Sites: Philosophorum: "where even the trolls are smart" | How to become a coding Guru "A bad plan is one carved in stone" -- Publilius Syrus |
|
#3
|
|||
|
|||
|
.................
........
|
|
#4
|
|||
|
|||
|
You did ask this question already here: http://forums.devshed.com/python-pr...our-524005.html
And I did give you a long and fairly complete answer there. What are you still having trouble with exactly? |
|
#5
|
||||
|
||||
|
Detailed explanation of looping in Python, using both recursion and iteration. HTH.
What have you tried with this problem so far? If you can post any code you've already written, we could give you advice on how to fix it, but we really can't do much for you without seeing what you've tried so far. Final note: if and when you poat any code, remember to use code tags to preserve indentation. This is even more important in Python that in most languages, because indentation is used in the language itself rather than just being a programming convention.
__________________
Rev First Speaker Schol-R-LEA;2 JAM LCF ELF KoR KCO BiWM TGIF #define KINSEY (rand() % 7) λ Scheme is the Red Pill Scheme in Short • Understanding the C/C++ Preprocessor Taming Python • A Highly Opinionated Review of Programming Languages for the Novice, v1.1 FOR SALE: One ShapeSystem 2300 CMD, extensively modified for human use. Includes s/w for anthro, transgender, sex-appeal enhance, & Gillian Anderson and Jason D. Poit clone forms. Some wear. $4500 obo. tverres@et.ins.gov |
|
#6
|
|||
|
|||
|
nxn table
Quote:
|
|
#7
|
|||
|
|||
|
Whats the code in python that would allow me to make an n x n times table. The program should get n from the user.could be like this.please suggest a less complicated code clearly
| 1 2 3 4 ------------------------- 1 | 1 2 3 4 2 | 2 4 6 8 3 | 3 6 9 12 4 | 4 8 12 16 |
|
#8
|
|||
|
|||
|
2. Write a function that given the string “original” create a new string “dramatic’ that has two consecutive copies of each letter from the original string. For example the string “argh” would appear “aarrgghh”
|
|
#9
|
|||
|
|||
|
3. Write a function, sliding(word, num)that behaves as follows. It should print out each slice of the original word having length num, aligned vertically as shown below. A call to sliding(examples, 4) would produce:
exam xamp ampl ples |
|
#10
|
|||
|
|||
|
1. Write a program that prints an n-level stair case made of text. The user should choose the text character and the number of stairs in the stair case
* ** *** **** |
|
#11
|
|||
|
|||
|
robot
5. Write a function with a signature cheerlead(word) that prints a typical cheer as follows. The word robot:
Gimme an R Gimme an O Gimme a B Gimme an O Gimme a T What did you give me? ROBOT!!! |
|
#12
|
|||
|
|||
|
Quote:
Alan Turing John von Neumann Donald Knuth Charles Babbage Grace Hopper your program should print out John von Neumann |
|
#13
|
|||
|
|||
|
Quote:
Find and print out all occurrences of the longest line. For example if the file held: Alan Turing Jonn von Neumann Donald Knuth Charles Babbage Grace Hopper Pete van de Beck your program should print out: John von Neumann Pete van de Beck |
|
#14
|
|||
|
|||
|
Don't make me call the mods
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > How to make an nxn table program in python |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|